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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -