Is there a way to determine if the device is in a right to left language (something like Arabic) as opposed to something that's left to right (English)?
Something compatible with older API levels (down to 10) is necessary
SOLUTION
i ended up using the xml method in the accepted answer. Farther down the line, i also added the code indicated here for instances where I didn't have access to getResources()
解决方案
You could create a values-ldrtl folder with a xml file called isrighttoleft.xml:
true
and in your values folder the same file with:
false
And finally in Code:
boolean isRightToLeft = getResources().getBoolean(R.bool.is_right_to_left);
The values-ldrtl will only be used on a device where the specific settings (e. g. Language) are right-to-left-read languages.