RTL Support: Disabling it only for specific UI components

五迷三道 提交于 2019-12-03 08:14:25

问题


I have a custom video player Activity.

I am forced to enable RTL Support in my Application.

But doing so will result in a Right-To-Left aligned ProgressBar. (And that looks ugly)

I want my ProgressBar to stay LTR in my RTL enabled Application.

Is there any solution?

P.S. I am using Android 4.2.2


回答1:


Okay there is a simple solution for 4.2 and upper:

You can set the android:layoutDirection property in XML, it can have either rtl or ltr values.

The property overrides android:supportsRtl property in "application" segment of your manifest file.



来源:https://stackoverflow.com/questions/22963740/rtl-support-disabling-it-only-for-specific-ui-components

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!