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