Search code examples
androidandroid-actionbaractionbarsherlock

Fully Transparent Action bar on Holo Light Theme


I want to make full translucent action bar like google did, i tried several option, that seems to work on Holo, however they are not "full transparent" in Holo.Light this is my style so far:

  <style name="MyTheme.Translucent" >
          <item name="windowActionBarOverlay">true</item>
          <item name="android:windowActionBarOverlay">true</item>
    <item name="actionBarStyle">@style/MyTheme.ActionBar</item>
    <item name="android:actionBarStyle">@style/MyTheme.ActionBar</item>
</style>

<style name="MyTheme.ActionBar" parent="@style/Widget.Sherlock.ActionBar">
    <item name="background">@android:color/transparent</item>
    <item name="android:background">@android:color/transparent</item>
</style>

and in Oncreate:

getSupportActionBar().setBackgroundDrawable(null);

the result its "almost" what i need however i see a shade in action bar: enter image description here What i want (or something like this)

enter image description here


Solution

  • i found the solution using

     <item name="android:windowContentOverlay">@null</item>
    

    will do the trick to remove the line