我想自定义我的应用程序,我已经应用了一个主题,但选项菜单似乎不适用我的主题。
我希望我的文字颜色为白色,背景为黑色,突出显示/选中的菜单项为黄色。 这是我的theme.xml:@style/MyActionBar @style/MyActionBarTabText @color/application_color5 @style/MyActionBarTabs @drawable/icone_barratopo_selector @drawable/icone_barratopo_selector @drawable/icone_barratopo_selector
和我的selector.xml:
将文件从theme.xml重命名为
res/values/themes.xml
请记住,您可以将您的主题应用到整个应用程序中
或个人活动
编辑线:
@drawable/actionbar_tab_indicator
至
@drawable/actionbar_tab_indicator
🙂
作者分享了如何自定义应用程序主题,主题中修改了文字颜色、背景色及选中菜单项样式。他们提供了theme.xml和selector.xml文件示例,展示了如何将主题应用到不同元素上,如actionbar_tab_indicator。
222

被折叠的 条评论
为什么被折叠?



