I am developing Android app with tab hosted.
I am using TabWidget
with TabHost
.
I want it right aligned with the language which is Arabic.
Please advise me the way to make tabwidget
right aligned.
Thanks
Try to add this:
android:layoutDirection="rtl"
Anyway, If you want to make every activity direction to RTL, I'm recommending you to use "super activity" and use this in the class:
if (getWindow().getDecorView().getLayoutDirection() == View.LAYOUT_DIRECTION_LTR) {
getWindow().getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL);
}