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
You can detect if a string is RTL/LTR with Bidi. Example:
import java.text.Bidi; Bidi bidi = new Bidi( title, Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT ); if( bidi.isLeftToRight() ) { // it's LTR } else { // it's RTL }