1

I try what simon tell to do for change direction but it's doesn't working. It's seems that for hundredth of a second it's work but when Action bar add the action buttons it's put the buttons at left instead at right.

What can be the problem? it's seems that somewhere in nmy code had line that tell freamwork to do otherwise?

Community
  • 1
  • 1
blay
  • 434
  • 8
  • 21

2 Answers2

2

The RTL value (true or false) is included in the flags in getApplicationInfo.flags.

As a long shot - is it possible that you are somehow changing the value?

theblitz
  • 6,161
  • 14
  • 52
  • 107
  • Thank You!! someone in my team, before a long time , override in mistake the ApplicationInfo.flags value. – blay Oct 26 '14 at 14:00
0

The ability to set RTL was added in Android 4.2 if you are supporting this OS level or higher, this will be easier for you to accomplish.

Proof it is 4.2+: https://groups.google.com/forum/#!topic/actionbarsherlock/-npidM2Eo0w Google post outlining how to change to RTL: https://plus.google.com/+AndroidDevelopers/posts/HuHNSb8V7s8

Otherwise, I would reference the SO question already pointed to in another comment if you are supporting an OS level older than 4.2: How to handle RTL languages on pre 4.2 versions of Android?

Community
  • 1
  • 1
Booger
  • 18,137
  • 6
  • 51
  • 64
  • I accomplish but it's dosen't work. It's seems that when the activity load the menu options' it's cause to title move left and put the buttons in right indstead – blay Oct 20 '14 at 13:33