android - Why I have the ActionBar under my tabs? -
android - Why I have the ActionBar under my tabs? -
there's i'm missing can't find out. help me please?
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> <item name="android:dividerheight">0dp</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>
java class:
actionbar.setdisplayshowtitleenabled(true); actionbar.setdisplayshowhomeenabled(false); actionbar.setdisplayuselogoenabled(false); actionbar.sethomebuttonenabled(false); actionbar.setnavigationmode(actionbar.navigation_mode_tabs);
comment below line. action bar top. //actionbar.setdisplayshowhomeenabled(false);
android tabs android-actionbar
Comments
Post a Comment