样式兼容5.0以下的Switch,SwitchCompat的常用属性
来源:互联网 发布:linux重启命令 init 编辑:程序博客网 时间:2024/06/05 17:40
android.support.v7.appcompat:showText Whether to draw on/off text. 是否显示开关状态的文字android.support.v7.appcompat:splitTrack Whether to split the track and leave a gap for the thumb drawable. 是否显示分割轨道的的竖线android.support.v7.appcompat:switchMinWidth Minimum width for the switch component May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". 开关的最小宽度android.support.v7.appcompat:switchPadding Minimum space between the switch and caption textMay be a dimension value, which is a floating point number appended with a unit such as "14.5sp". 开关和文字的最小距离android.support.v7.appcompat:switchTextAppearance TextAppearance style for text displayed on the switch thumb. 开关文字的样式android.support.v7.appcompat:thumbTextPadding Amount of padding on either side of text within the switch thumb. 滑块文字距两侧的距离android.support.v7.appcompat:thumbTint Tint to apply to the thumb drawable. 轨道颜色android.support.v7.appcompat:thumbTintMode Blending mode used to apply the thumb tint. 轨道颜色模式android.support.v7.appcompat:track Drawable to use as the "track" that the switch thumb slides within. 轨道android.support.v7.appcompat:trackTint Tint to apply to the track. 轨道颜色android.support.v7.appcompat:trackTintMode Blending mode used to apply the track tint. 轨道颜色模式android:textOff Text to use when the switch is in the unchecked/"off" state. 开关关的状态的文字android:textOn Text to use when the switch is in the checked/"on" state. 开关开的状态的文字android:thumbDrawable to use as the "thumb" that switches back and forth. 滑块
部分效果图
1 1
- 样式兼容5.0以下的Switch,SwitchCompat的常用属性
- 兼容ie10以下版本的placeholder属性
- Ie9以下的input输入框placeholder属性兼容方案
- CSS样式常用的兼容hack写法
- 修改switch的样式
- CSS样式常用兼容属性之日积月累
- SwitchCompat控件颜色的修改
- ActionBar 改变样式并兼容sdk 11以下机器的方法
- Flex 常用组件对应的样式属性
- CSS样式有哪些常用的属性?
- Android-Material学习(可以兼容5.0以下的版本)
- javascript基础(样式的操作,浏览器兼容样式操作,其他的样式相关属性,滚动的样式)(三十)
- 关于Switch的自定义样式
- SwitchCompat与Switch简单使用
- localstorage兼容ie8以下浏览器的问题
- 兼容IE8及其以下的浏览器
- 修改v7包中SwitchCompat的颜色
- 给 SwitchCompat 设置颜色的方法
- Linux_(1)命令
- Java 父类构造函数中调用子类重写的方法
- HDU 4009Transfer water 最小树形图
- maven工程更换工程名
- Revit开发之剪切InstanceVoidCutUtils
- 样式兼容5.0以下的Switch,SwitchCompat的常用属性
- LeetCode-Reverse Linked List
- 进制
- 贝叶斯定理及其应用
- 数据结构和算法绪论下
- 采集
- 版本更新
- 个人博客始于此时此地
- CVPR 2016|商汤科技论文解析:行为识别与定位