android - Getting error for password field alone in RTL for arabic language -


for password edittext box alone not working rtl properly. have tried solution in stackoverflow. working app muti language support both english , arabic. please me :(

i faced similar issue while developing app in arabic , english , manage programmatically checking system lang like:

//check sys lang     public boolean isarabic()     {         if (locale.getdefault().getlanguage().equals("ar")) {             return true;         }         else         {return false;}     } 

then set gravity edittext accordingly

if(isarabic())         {         //arabic (rtl)             edtpassword.setgravity(gravity.end);         }         else {         //english (ltr)             edtpassword.setgravity(gravity.left);         } 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -