Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I force my android application run only with RTL layout directon?

I want to have RTL-only layout. I don't want to have layouts that depend on user cellphone's language . What should I add in my android manifest file to make my application RTL forcedly?

like image 869
Hossein Moghimi Avatar asked Jan 02 '17 03:01

Hossein Moghimi


2 Answers

you have to set this android:supportsRtl="false" in your application tag in manifest and design your layouts as a rtl layout. then it won't change the layouts base on the device direction

like image 148
masoud vali Avatar answered Oct 13 '22 01:10

masoud vali


Unfortunately Android doesn't support only RTL as the only flag is to state either RTL support or not.

You will just need to add android:supportsRtl="true" and make your layouts only specific to RTL support.

like image 32
Numan1617 Avatar answered Oct 13 '22 03:10

Numan1617