如何从操作栏选项卡隐藏包名称

时间:2013-11-06 08:35:36

标签: android actionbarsherlock

I am using Sherlock library for action tab bar. I have implemented custom action bar tab.
I want to hide package name from action bar.

I have marked by red color in posted screen shot

enter image description here

2 个答案:

答案 0 :(得分:3)

你的意思是setDisplayShowTitleEnabled(false)

答案 1 :(得分:0)

使用此样式:

<style name="Theme.Main" parent="Theme.Sherlock.Light">
        <item name="windowActionModeOverlay">false</item>
        <item name="android:windowFullscreen">false</item>
        <item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>
        <item name="android:actionBarStyle">@style/Widget.Styled.ActionBar</item>
        <item name="actionButtonStyle">@style/ActionButtonStyle</item>
        <item name="android:actionButtonStyle">@style/ActionButtonStyle</item>
        <!-- the action bar dropdown menu item -->
        <item name="actionBarTabStyle">@style/actionBarTabStyle</item>
        <item name="android:actionBarTabStyle">@style/actionBarTabStyle</item>
        <item name="android:popupMenuStyle">@style/PopupMenu.Example</item>
        <item name="popupMenuStyle">@style/PopupMenu.Example</item>


        <item name="dropDownListViewStyle">@style/DropDownListView.Example1</item>
        <item name="android:actionModeCloseButtonStyle">@style/ActionButton.CloseMode.Example1</item>
    </style>