I am going to build a Persian app (RTL)
.
my app includes a ListView and a Navigation Drawer
.
I added in Manifest
in application tag
Just concatenate every string that you want to set in textView with "\u202B"
it just enforces the text to be RTL.
String textWhichIsLTR = "LTR or RTL text that you want to enforce to RTL";
String enforcedRTL = textWhichIsLTR + "\u202B";
fooTextView.setText(enforcedRTL);
use ViewCompat from android.support.v4.view.ViewCompat !
ViewCompat.setLayoutDirection (View yourView, int layoutDirection)
layoutDirection is a constant from ViewCompat class