Is there a way to identify RTL (right-to-left) language, apart from testing language code against all RTL languages?
Since API 17+ allows several resources for RTL a
Easily you can use this :
if (getWindow().getDecorView().getLayoutDirection()== View.LAYOUT_DIRECTION_RTL) { // The view has RTL layout } else { // The view has LTR layout }