checkbox大小调整 样式设置
来源:互联网 发布:广州数控编程实例 编辑:程序博客网 时间:2024/05/22 06:23
<CheckBox
android:id="@+id/checkBox1"
style="@style/CustomCheckboxTheme"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:scaleX="2"
android:scaleY="2" >
android:id="@+id/checkBox1"
style="@style/CustomCheckboxTheme"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:scaleX="2"
android:scaleY="2" >
</CheckBox>
样式:
<style name="CustomCheckboxTheme" parent="@android:style/Widget.CompoundButton.CheckBox">
<item name="android:button">@drawable/checkbox_style</item>
</style>
下面是背景文件:
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/checkbox_pressed" android:state_checked="true"/>
<item android:drawable="@drawable/nocheck" android:state_checked="false"/>
<item android:drawable="@drawable/nocheck"/>
</selector>
0 0
- checkbox大小调整 样式设置
- android调整checkbox的大小
- 设置checkbox的大小
- checkbox设置大小
- Checkbox样式,调整和文字齐平
- CSS3设置checkbox的样式
- 设置input 的 checkbox样式
- 自定义设置css checkbox样式
- Android 设置CheckBox的大小
- 调整TimePicker, DatePicker的大小,样式
- 移动端对radio和checkbox的样式调整
- android中设置CheckBox的样式
- Java纯代码设置CheckBox的样式
- android checkbox设置自定义的样式
- CheckBox设置颜色和自定义样式
- 设置checkBox复选框的大小
- Android TextView设置图标,调整图标大小
- Java代码 自定义Android RatingBar 样式 【调整大小】
- Android 图片压缩总结
- 数组、字典、set集合介绍
- yii2 - 2-2: yii2配置 - 配置数据库
- java线程安全问题之静态变量、实例变量、局部变量
- Win7 下Foxmail签名无法修改的解决方案
- checkbox大小调整 样式设置
- 架构设计:负载均衡层设计方案(1)——负载场景和解决方式
- Regex正则表达式之“\d+”、RegexOptions.IgnoreCase、Groups(一)
- Android国际化问题
- 决定开始学java第一天
- Eclipse安装SVN插件
- Android 百分比布局库(percent-support-lib) 解析与扩展
- fedora测试nginx-rtmp-module
- 浙江大学PAT_甲级_1070. Mooncake (25)