更改ToolBar的样式(侧边栏联动箭头颜色,字体大小和颜色)
来源:互联网 发布:美橙互联域名证书 编辑:程序博客网 时间:2024/06/07 12:43
更改ToolBar的样式(侧边栏联动箭头颜色,字体大小和颜色)
<!--小汉堡颜色为白色--> <style name="DrawerArrowStyle" parent="@style/Widget.AppCompat.DrawerArrowToggle"> <item name="spinBars">true</item> <item name="color">@android:color/white</item> </style> <!-- ToolBar菜单样式 --> <style name="ToolbarTheme" parent="@style/ThemeOverlay.AppCompat.ActionBar"> <item name="actionMenuTextColor">@color/white</item> <!-- menu中字体颜色--> <item name="android:textSize">18sp</item> <!-- 字体大小--> <item name="android:textColor">@color/white</item> <item name="android:color">@color/white</item> </style> <!-- Application theme. --> <style name="AppTheme" parent="AppBaseTheme"> <item name="drawerArrowStyle">@style/DrawerArrowStyle</item> <!--小汉堡颜色--> <item name="toolbarStyle">@style/ToolbarTheme</item> <!-- All customizations that are NOT specific to a particular API-level can go here. --> </style>
布局文件(也要引用)
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/activity_home" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" app:theme="@style/ToolbarTheme" android:layout_height="wrap_content" android:background="@color/actionbar_background" android:minHeight="?attr/actionBarSize" /> <include layout="@layout/drawerlayout"></include></LinearLayout>
0 0
- 更改ToolBar的样式(侧边栏联动箭头颜色,字体大小和颜色)
- 更改static字体大小和颜色
- notepad++更改字体大小和颜色
- notepad++更改字体大小和颜色
- css3更改radio的颜色和样式
- Sublime text3 更改侧边栏颜色
- 更改spinnerView 箭头颜色
- toolbar标题颜色更改
- VC设置控件的字体颜色和背景颜色和字体大小和样式
- webview 更改html的背景颜色 字体颜色 字体大小
- Android-Toolbar标题居中与字体大小和颜色
- 更改Android AppCompatRadioButton控件的样式和颜色
- Android-PickerView 三级联动选择器的标题和内容的字体大小、颜色设置
- 安卓toolbar,toolbar替换actionbar,改变toolbar箭头颜色
- Android 中 ToolBar箭头颜色设置
- ToolBar样式颜色,图标设置
- android 更改TextView中任意位置字体大小和颜色
- Sublime text 3更改侧边栏【sidebar】的字体大小
- 机械硬盘内部硬件结构和工作原理详解
- 聚类算法-最大最小距离算法(实例+代码)
- JS转换HTML转义符的方法
- View Animator(Tween Animator)、Drawable Animator(Frame Animator)、Property Animator
- [生存志] 第75节 礼经士礼尚书记言
- 更改ToolBar的样式(侧边栏联动箭头颜色,字体大小和颜色)
- SSH之Spring传统方式接入YAML管理各环境配置方式(从Spring Boot移植)
- Jquery的同步和异步请求
- StringBulider示例
- 基于TCP的服务器端/客户端(二)---------网络编程(Linux----C)
- 73. Set Matrix Zeroes
- 浏览器广告插件导致程序无法正常加载
- MATERIAL DESIGN的学习笔记
- find 及权限