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
Post a Comment