【问题标题】:Android Studio - The user interface location changes when the system language changesAndroid Studio - 系统语言改变时用户界面位置改变
【发布时间】:2021-08-01 14:39:03
【问题描述】:

我刚刚完成了一个简单的应用程序,但是当我将手机更改为另一种语言(例如希伯来语)时,UI 位置发生了变化。我该如何解决?

英文视图: The UI when the system language is English

希伯来语观点: The UI when the system language is Hebrew

【问题讨论】:

    标签: java android android-studio user-interface


    【解决方案1】:

    由于设备上设置的 RTL 语言,这是从右到左的布局定位。请注意,即使顶部状态栏上的图标也在改变顺序。您可以通过清单条目禁用此行为

    <manifest>
        <application
            ....
            android:supportsRtl="false"
            tools:replace="android:supportsRtl">
        // activities, services, broadcasts etc. in here
        </application>
    </manifest>
    

    HERE 你有一些关于该主题的文档,HERE 一些有用的博客文章

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-14
      • 2021-10-04
      • 2020-10-03
      相关资源
      最近更新 更多