我需要删除文本和顶部边框之间的空格。我希望它与中心对齐。
现在我的TabHost看起来像这样
我需要转换成这样的东西
我的styles.xml
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
<item name="android:actionBarStyle">@style/MyActionBar</item>
<item name="android:tabWidgetStyle">@style/LightTabWidget</item>
</style>
<style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">#0767de</item>
</style>
<style name="MyActionBar1" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:textColor">#ffffff</item>
</style>
<style name="LightTabWidget" parent="@android:style/Widget.TabWidget">
<!-- set textColor to red, so you can verify that it applied. -->
<item name="android:textColor">#0767de</item>w
<item name="android:textSize">14sp</item>
<item name="android:tabStripEnabled">false</item>
</style>
提前致谢