Android Application force RTL -


i need force application run rtl regardless phone language can done developer mode , need added programatically application force application display rtl

android:supportsrtl="true"

this working depend on phone languages thanks

set language of app on startup :

        resources res = getresources();         configuration newconfig = new configuration( res.getconfiguration() );         locale locale = new locale( applanguage );         newconfig.locale = locale;         newconfig.setlayoutdirection( locale );         res.updateconfiguration( newconfig, null ); 

setlayoutdirection important in case applanguage differ phone language.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -