Sherlock Actionbar RTL

Android 4.2 introduced the support for Right To Left action bar, is there a way to configure the Sherlock Action bar to be in RTL mode?

note that the current Sherlock Actionbar version is 4.2, but I couldn’t find anything related to the RTL support.

  • Hiding android.R resources in Android Studio 1.3+ autocomplete
  • Is there a broadcast action for volume changes?
  • Android: change font color on click
  • what does ImageSwitcher actually DO?
  • How to make QR code for BOTH Android Market and App Store
  • Android - retrieve string array from resources
  • Related posts:

    Change ListView's textcolor
    Android: How to send interface from one activity to another
    Make a SurfaceView transparent without setZOrderOnTop(true)
    what is ids.xml used for?
    how to turn speaker on/off programatically in android 4.0
    Android ActionBar compatibility: MenuItem.setActionView(View)
  • How can I use onCreateOptionsMenu in a Fragment within a tab Activity? (Sherlock ActionBar)
  • Why don't most Android devices have swap area as typical OS does?
  • Why should I Sign my Application APK before release
  • Android: using fragments programmatically
  • Android 2.3 Visualizer - Trouble understanding getFft()
  • Tell Proguard to keep annotation on methods
  • One Solution collect form web for “Sherlock Actionbar RTL”

    As of this time, the RTL feature of the ActionBar has not been included in the support library. From what I can gather, it’s not scheduled to be, either, since there were some changes to the underlying View structure.

    If you’re using ActionBarSherlock, it will work the same as if you’re using a native ActionBar. From 4.2 up, it will support RTL, and not on lower platform levels. Assuming you have android:supportsRtl="true" in your manifest, that is.

    If you want to have a good RTL experience for all users, while still using the native RTL support for those on >=4.2, you can check the build level in your app and plan accordingly.

    The alternatives as I see it are:

    • Use a custom layout for all users and forgo the ease of the new API levels
    • Support RTL for no users

    Your question was: “Is there any way to configure ABS for RTL?”. The answer to that is yes, but only if users are on 4.2. For anything lower than that, there is simply no way to do it without custom layouts.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.