Android 如何强制rtl支持视图?

Android 如何强制rtl支持视图?,android,android-layout,right-to-left,Android,Android Layout,Right To Left,我已禁用并强制我的应用程序不支持rtl。因为它在视图和布局方面产生了很多问题,这是我的清单代码: <application android:name="ir.dizbon.persiandesigners.ParseApplication" android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:sup

我已禁用并强制我的应用程序不支持rtl。因为它在视图和布局方面产生了很多问题,这是我的清单代码:

<application
    android:name="ir.dizbon.persiandesigners.ParseApplication"
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="false"
    android:theme="@style/AppTheme"
    tools:replace="android:supportsRtl">
当我删除清单代码时,布局会改变方向,工作正常,但我无法删除清单代码

我试图务实地改变方向:

pass_l.setLayoutDirection(View.LAYOUT_DIRECTION_RTL);
它也不起作用


如何使我的观点支持rtl并获得rtl

您可以在android studio中创建不同的布局以支持rtl。 右键单击布局->新建->布局资源文件->然后选择布局方向限定符。

感谢您的回复,我不想在我的布局中支持rtl,我想强制我的视图以任何语言获取rtl。您想同时使用rtl和ltr吗?除了创建新布局之外,您是否找到了问题的解决方案
pass_l.setLayoutDirection(View.LAYOUT_DIRECTION_RTL);