阿拉伯语系统下,LinearLayout内容是从右到左,需要强制设置从左到右
android:layoutDirection="ltr"
判断系统布局是从右到左
boolean isRTL = TextUtilsCompat.getLayoutDirectionFromLocale(Locale.getDefault()) == LayoutDirection.RTL
判断系统语言是阿拉伯语
boolean isAr = Locale.getDefault().getLanguage().contains("ar");
Textview文字方向设置 从右到左
android:textDirection="rtl"