gpt4 book ai didi

android - 更改区域设置但保持从左到右和其他电话方向

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:52:02 25 4
gpt4 key购买 nike

我有一个支持两种语言的应用程序 - 英语和希伯来语。

我使用 Translation Editor 添加了希伯来语字符串我正在根据用户选择更改语言环境。

当更改区域设置时,它会像我想要的那样将字符串设置为希伯来语,但它也会将希伯来语的工具栏方向更改为从右到左并带来右侧的标题和后退按钮。

英语语言环境(默认):

enter image description here

希伯来语言环境: enter image description here

有没有办法让工具栏方向像英文一样?我想保留工具栏左侧的后退按钮标题

编辑:将android:layoutDirection="ltr"android:supportsRtl="false" 添加到工具栏之后 xml。箭头向后。如何解决?

enter image description here

最佳答案

Change Locale but keep left-to-right and other phone orientations

具体来说,添加android:supportsRtl="false"<application> list 文件中的元素。

更多信息Link

关于android - 更改区域设置但保持从左到右和其他电话方向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37120673/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com