Relative dimensions issue with android:supportsRtl

2019-08-12 06:03发布

问题:

I've used dimensions as paddingStart or paddingEnd instead of paddingLeft or paddingRight, but when i disabled RTL support with 'android:supportsRtl="false"' . Then in whole app the layout is not picking dimens and views are disturbed. I tried a view with replacing paddingStart with paddingLeft and it got corrected. But i don't want to change it in whole app. Is relative dimension scheme supported for RTL support only? what if i want to disable RTL support in a app that previously had that support in it?

回答1:

If you want to force the app to LTR, You can use this answer:

Force LTR