1

I am using this code for rtl layoutDirection for actionBar:

getWindow().getDecorView().setLayoutDirection(
                    View.LAYOUT_DIRECTION_RTL);

and this on manifest:

    android:supportsRtl="true"

but it's not working on android 4.1.2 or lower.

How can I get this to work?

atw
  • 5,428
  • 10
  • 39
  • 63
M.Khaleghi
  • 31
  • 1
  • 7
  • layout direction was added in API 17 and therefore cannot be used on versions < 17.http://developer.android.com/guide/topics/resources/providing-resources.html#table2 – em_ Dec 28 '15 at 16:44

0 Answers0