I hope I understood your question correctly, that is, you want to somehow combine the action bar with the tabs so that there is no border between them → the line or shadow you specified. If this is correct, then this is what you are looking for:
Add this to your MyAppTheme :
<item name="android:actionBarStyle">@style/LineRemover</item>
and change this line:
<item name="android:windowContentOverlay">@null</item>
:
<item name="android:windowActionBarOverlay">true</item>
and then add the following style below:
<style name="LineRemover" parent="android:Widget.Holo.ActionBar"> <item name="android:background">@android:color/transparent</item> </style>
In the end, you have something like this:
<style name="MyAppTheme" parent="@android:style/Theme.Holo.Light"> <item name="android:windowActionBarOverlay">true</item> <item name="android:actionBarStyle">@style/LineRemover</item> </style> <style name="LineRemover" parent="android:Widget.Holo.ActionBar"> <item name="android:background">@android:color/transparent</item> </style>
I assume that you know that you should register your theme in the android manifest (in your activity or application tag:
android:theme="@style/MyAppTheme" >
Remember to mark this as your accepted answer, if that helped you :)
source share