I\'m working on and activity with arabic language. I want the hint of the username and password to start from the right and I have no problem f typing started from the left
For AppCompatEditText edit text gravity start worked for me
This will work only above api 16
you can also try, Where you must have stored your current language I used this library com.akexorcist:localizationactivity
if(currentLanguage.country.toLowerCase() == "arabic"){
etPassword.gravity = GravityCompat.END
}else{
etPassword.gravity = GravityCompat.START
}