我想去掉ActionBar选项卡之间的填充(空格)。
我正在使用Android Support Library V7(Appcompat)在Android 2.2 API 8作为minSDK和4.4 API 19作为maxSDK中使用Fragments和ActionBar。
我尝试过以下方法,但没有改变任何内容。
我的styles.xml
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light">
</style>
<style name="AppTheme" parent="AppBaseTheme">
<item name="@style/Widget.AppCompat.ActionBar.TabView">@style/TabBarStyle</item>
</style>
<style name="TabBarStyle" parent="@style/Widget.AppCompat.ActionBar.TabView">
<item name="android:paddingLeft">2dp</item>
<item name="android:paddingRight">2dp</item>
</style>
</resources>
AndroidManifest.xml
中的我的活动内容
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:uiOptions="splitActionBarWhenNarrow" >
请问有人能够向我展示如何正确地扩展和使用自定义主题吗?