I am trying to show a dialog at the right top corner of the screen with the following line in my Activity class:
dialog.getWindow().getAttributes().gravity= Gravity.RIGHT|Gravity.TOP
This works fine. But when i checked the code for any inconsistency by running Lint on my project it shows a suggestion stating
Use "'Gravity.END'" instead of "'Gravity.RIGHT'" to ensure correct behavior in right-to-left locales
My question:
What is the difference between Gravity.END and Gravity.RIGHT and what does right-to-left locales mean?
TIA