I have a menu like this:

I always want the main app's layout direction to be LTR. However, I want this menu to be RTL when I set the locale to a RTL locale in the settings. Is there anyway to set the layout direction programmatically? Setting it through the XML files will just have it be overwritten by the MainActivity's onCreate code.
Источник: https://stackoverflow.com/questions/781 ... -what-loca
Мобильная версия