Sunday, 15 August 2010

android - How can I remove the divider between the ActionBar and the tabs -



android - How can I remove the divider between the ActionBar and the tabs -

i'm trying remove divider between actionbar , tabs did not succeed yet. i've tried <item name="android:actionbardivider">@color/tab_color</item> in style.xml nothing. in few words i'd have this:

here's style.xml:

<style name="apptheme" parent="theme.appcompat.light"/> <style name="theme.styled" parent="@style/theme.appcompat.light"> <item name="android:windowcontentoverlay">@null</item> <item name="android:windowdisablepreview">true</item> <item name="android:actionbaritembackground">@drawable/selectable_background_example</item> <item name="android:actionbartabstyle">@style/widget.styled.actionbar.tabview</item> <item name="android:actionbarstyle">@style/widget.styled.actionbar</item> <item name="android:actionbartabtextstyle">@style/mycustomtabview</item> <item name="android:actionbardivider">@color/tab_color</item> </style> <style name="widget.styled.actionbar.tabview" parent="@style/widget.appcompat.light.actionbar.tabview"> <item name="android:background">@drawable/tab_indicator_ab_example</item> <item name="android:width">30dp</item> </style> <style name="widget.styled.actionbar" parent="@style/widget.appcompat.light.actionbar.solid"> <item name="android:background">@color/tab_color</item> <item name="android:backgroundstacked">@drawable/ab_stacked_solid_example</item> <item name="android:backgroundsplit">@color/tab_color</item> <item name="android:textcolor">@color/tab_text</item> <item name="android:titletextstyle">@style/myactionbartextcolor</item> <item name="android:actionbardivider">@color/tab_color</item> </style> <style name="myactionbartextcolor" parent="textappearance.appcompat.widget.actionbar.title"> <item name="android:textcolor">@color/tab_text</item> </style> <style name="mycustomtabview" parent="theme.appcompat.light"> <item name="android:textcolor">#ffffff</item> <item name="android:textsize">14dp</item> <item name="android:textstyle">bold</item> </style>

this have

the theme.holo.light has default shadow on bottom, appcompat too, seek utilize default 1 theme.appcompat.

your background utilize image, seek utilize @color/tab_color this.

<style name="widget.styled.actionbar" parent="@style/widget.appcompat.light.actionbar.solid"> <item name="android:background">@color/tab_color</item> <item name="android:backgroundstacked">@color/tab_color</item> <item name="android:backgroundsplit">@color/tab_color</item> <item name="android:textcolor">@color/tab_text</item> <item name="android:titletextstyle">@style/myactionbartextcolor</item> <item name="android:actionbardivider">@color/tab_color</item> </style>

sources :

actionbarsherlock issue

removing line or divider in android

remove divider under actionbar

remove bluish divider on ics

android tabs android-actionbar divider

No comments:

Post a Comment