Linearlayout order is reversed on some devices

走远了吗. 提交于 2019-12-01 18:29:56

If you're targeting and testing on API level >=17 (i.e. Android 4.2) this might be caused by RTL support, as described here.

If you don't want this, you can either change android:layoutDirection for each particular view (and since the default is inherit, the root view should suffice) or you can disable it for the whole application by setting android:supportsRtl="false" in the AndroidManifest.xml file.

Or, you could also target an API level < 17, since it will then be disabled for compatibility (but this would lock you out of certain APIs).

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