Style actionbar background 3.0
来源:互联网 发布:才真旺姆解释双修 知乎 编辑:程序博客网 时间:2024/06/14 06:17
自定义actionBar
1、新建themes.xml
2、自定义style 继承当前主题 (android:style/Theme.Holo)重写android:actionBarStyle 名字对应下面的style
3、自定义名字 继承 背景颜色(android:style/Theme.Holo.Light.ActionBar.Solid.Inverse)
4、重写该类下的android:background方法,内容为背景资源;
以下是Demo
<?xml version="1.0" encoding="utf-8"?><resources> <!-- the theme applied to the application or activity --> <style name="CustomActionBarTheme" parent="@android:style/Theme.Holo.Light.DarkActionBar"> <item name="android:actionBarStyle">@style/MyActionBar</item> </style> <!-- ActionBar styles --> <style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"> <item name="android:background">@drawable/actionbar_background</item> </style></resources>
0 0
- Style actionbar background 3.0
- android actionbar tab style
- Android ActionBar学习(二) -- 自定义ActionBar Style
- Android ActionBar学习(二) -- 自定义ActionBar Style
- Google C++ Style Guide:Background
- ActionBar 设置图片、Home返回、Background图片
- Android之style ,src与background区别
- 设置actionbar的style与actionbar上的menu冲突
- how to change the background of actionbar.tab
- how to change the background color of actionbar
- ActionBar --3.0
- #利用background实现list-style的完美解决方案
- angularjs ng-style background-image的用法及坑
- Android修改ActionBar背景颜色和标题颜色的style
- ActionBar之style出现Cannot resolve symbol 'Theme' 错误
- Android自定义ActionBar背景色、字体颜色等样式style
- Android自定义ActionBar背景色、字体颜色等样式style
- android actionbar 网页在线生成style(修改配置)
- matlab 可视化 —— axis
- Python 各种测试框架简介(一):doctest
- Jenkins distributed builds - master/slave
- foreach的原理
- javascript常用互动方法
- Style actionbar background 3.0
- 一个32岁入门的70后程序员给我的启示(续)
- 设计模式之命令模式
- equals函数的作用笔记Mars
- 大话数据结构—栈与队列
- 位运算
- 设计和开发如何获取真实的客户产品需求
- Spring中配置数据源的4种形式
- 2015级C++第16周实践项目 文件