android 不能覆盖style,android – 为什么我的自定义’actionBarTabStyle’不会覆盖默认样式/主题?...

我已经尝试了几天来覆盖自定义标签样式的Holo主题,但我的更改没有任何效果.

这是我的styles.xml

@style/MyActionBarTabs

@drawable/tabselector

>

这是我的tabselector.xml

我在我的活动中使用TabHost添加了标签,其布局如下所示

android:id="@android:id/tabhost"

android:layout_width="match_parent"

android:layout_height="match_parent" >

android:layout_width="match_parent"

android:layout_height="match_parent"

android:orientation="vertical" >

android:id="@android:id/tabs"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:layout_weight="0"

android:orientation="horizontal" />

android:id="@android:id/tabcontent"

android:layout_width="0dp"

android:layout_height="0dp"

android:layout_weight="0" />

android:id="@+id/realtabcontent"

android:layout_width="match_parent"

android:layout_height="0dp"

android:layout_weight="1" />

我的标签看起来仍然一样.

我的标签指示器应该是我自定义的粉红色.但是,没有变化,它们仍然是蓝色的.

注意事项:

>我的清单文件引用了我的应用程序标记中的更新主题

>我的styles.xml在每个值文件夹中更新(values,values-v11,values-v14)

>所有这一切都是在我的应用程序顶部使用ic_launcher图像和标题添加操作栏

我错过了什么或做错了什么?感谢任何帮助.谢谢你们!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值