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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -