如何删除选项卡之间的分隔线?

时间:2015-03-14 09:44:33

标签: java android android-layout

这是我的布局

enter image description here

我想删除用红色圈出的线,有办法吗?

我曾尝试使用图像进行操作,但这没用[/ p>

我也用过

<item name="windowActionBarOverlay">true</item>
<item name="android:windowActionBarOverlay">true</item>

然后仍然没有预期的结果。

我正在使用自定义主题,将stlye作为

<?xml version="1.0" encoding="utf-8"?>

<style name="Theme.Sevenbee" parent="@android:style/Theme.Holo.Light">
    <item name="android:actionBarItemBackground">@drawable/selectable_background_sevenbee</item>
    <item name="android:popupMenuStyle">@style/PopupMenu.Sevenbee</item>
    <item name="android:dropDownListViewStyle">@style/DropDownListView.Sevenbee</item>
    <item name="android:actionBarTabStyle">@style/ActionBarTabStyle.Sevenbee</item>
    <item name="android:actionDropDownStyle">@style/DropDownNav.Sevenbee</item>
    <item name="android:actionBarStyle">@style/ActionBar.Solid.Sevenbee</item>
    <item name="android:actionModeBackground">@drawable/cab_background_top_sevenbee</item>
    <item name="android:actionModeSplitBackground">@drawable/cab_background_bottom_sevenbee</item>
    <item name="android:actionModeCloseButtonStyle">@style/ActionButton.CloseMode.Sevenbee</item>




</style>

<style name="ActionBar.Solid.Sevenbee" parent="@android:style/Widget.Holo.Light.ActionBar.Solid">
    <item name="android:background">@drawable/ab_background_textured_sevenbee</item>
    <item name="android:backgroundStacked">@drawable/ab_stacked_solid_sevenbee</item>
    <item name="android:backgroundSplit">@drawable/ab_background_textured_sevenbee</item>
    <item name="android:progressBarStyle">@style/ProgressBar.Sevenbee</item>
</style>

<style name="ActionBar.Transparent.Sevenbee" parent="@android:style/Widget.Holo.Light.ActionBar">
    <item name="android:background">@drawable/ab_transparent_sevenbee</item>
    <item name="android:progressBarStyle">@style/ProgressBar.Sevenbee</item>
</style>

<style name="PopupMenu.Sevenbee" parent="@android:style/Widget.Holo.Light.ListPopupWindow">
    <item name="android:popupBackground">@drawable/menu_dropdown_panel_sevenbee</item>  
</style>

<style name="DropDownListView.Sevenbee" parent="@android:style/Widget.Holo.Light.ListView.DropDown">
    <item name="android:listSelector">@drawable/selectable_background_sevenbee</item>
</style>

<style name="ActionBarTabStyle.Sevenbee" parent="@android:style/Widget.Holo.Light.ActionBar.TabView">
    <item name="android:background">@drawable/tab_indicator_ab_sevenbee</item>
</style>

<style name="DropDownNav.Sevenbee" parent="@android:style/Widget.Holo.Light.Spinner">
    <item name="android:background">@drawable/spinner_background_ab_sevenbee</item>
    <item name="android:popupBackground">@drawable/menu_dropdown_panel_sevenbee</item>
    <item name="android:dropDownSelector">@drawable/selectable_background_sevenbee</item>
</style>

<style name="ProgressBar.Sevenbee" parent="@android:style/Widget.Holo.Light.ProgressBar.Horizontal">
    <item name="android:progressDrawable">@drawable/progress_horizontal_sevenbee</item>
</style>

<style name="ActionButton.CloseMode.Sevenbee" parent="@android:style/Widget.Holo.Light.ActionButton.CloseMode">
    <item name="android:background">@drawable/btn_cab_done_sevenbee</item>
</style>

<!-- this style is only referenced in a Light.DarkActionBar based theme -->
<style name="Theme.Sevenbee.Widget" parent="@android:style/Theme.Holo">
    <item name="android:popupMenuStyle">@style/PopupMenu.Sevenbee</item>
    <item name="android:dropDownListViewStyle">@style/DropDownListView.Sevenbee</item>
</style>

1 个答案:

答案 0 :(得分:0)

您可以更改与标签bg颜色相同的标签分隔线颜色。所以这种效果就像你没有任何分隔。

<item name="android:actionBarDivider">@color/background</item>