Actionbar change Height
来源:互联网 发布:阿里云实名认证失败 编辑:程序博客网 时间:2024/06/06 10:00
V7 里面有个Actionbar控件,有时候需要设置高度:百度了一堆然后不能用.谷歌了一把.
情况描述:
1.V7包的版本 com.android.support:appcompat-v7:23.1.1
2.开发工具: Android studio 1.5
解决方法
a.设置style,添加 下面这条属性
<item name="actionBarSize">20dip</item>
<!-- Base application theme. --><style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> <item name="android:windowTitleSize">20dp</item> <item name="actionBarSize">20dip</item></style>
b.在Activity中的清单文件中配置theme属性,即可.
0 0
- Actionbar change Height
- CustomPropertyDrawer-Change the height of Property field
- How to change height of RadMenu (Sprite Image)
- how to change the background of actionbar.tab
- how to change the background color of actionbar
- height
- ActionBar
- ActionBar
- ActionBar
- Actionbar
- ActionBar
- actionbar
- actionBar
- actionbar
- ActionBar
- ActionBar
- ActionBar
- ActionBar
- 【nodejs】服务器处理url请求并返回json数据
- Algrothm_Sort_HeapSort
- Tomcat启动过程原理详解
- Java文本转语音
- Sicily 1488 矩阵取数游戏
- Actionbar change Height
- 热烈祝贺阿尔法Go首战告捷
- 深入浅出RxJava(二:操作符)
- Android系统源码剖析(一)---Settings
- @RequestMapping 用法详解之地址映射(转)
- Win10系统安装软件为了对电脑进行保护,已经阻止此应用解决方法
- 第二周项目1-宣告"主权"
- mobile
- 【bzoj3223】Tyvj 1729 文艺平衡树