Reputation: 331
For password Edittext box alone not working Rtl properly. I have tried all solution which is in stackoverflow. Am working app with muti language support both English and arabic. Please help me :(
Upvotes: 1
Views: 452
Reputation: 7964
i faced a similar issue while developing an app In Arabic and English and i could only manage it programmatically by checking system lang like:
//check sys lang
public boolean isArabic()
{
if (Locale.getDefault().getLanguage().equals("ar")) {
return true;
}
else
{return false;}
}
then set your gravity to edittext accordingly
if(isArabic())
{
//arabic (rtl)
edtPassword.setGravity(Gravity.END);
}
else {
//english (ltr)
edtPassword.setGravity(Gravity.LEFT);
}
Upvotes: 1