android - Android4.0是否支持Android复选框属性“android:button”?
问题描述
我正在 xml 文件中测试 Checkbox 的属性 android:button 。新样式在Android6.0下运行良好,但在Android4.0仍显示默认样式。我检查了 API 级别 1 中添加的 StateListDrawable。为什么这个属性在 Android4.0 中不起作用。
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@mipmap/ic_launcher_round"/>
或者
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@drawable/state_list_xml"/>
两种方式的结果与我上面描述的相同。
解决方案
推荐阅读
- php - 记录到数据库 BLOB 列长时间运行的 php 脚本的内存有效方式
- google-analytics - 如何在 Google Analytics 中分析多个查询参数
- angular - 角度 github 构建并非所有图像都获取应用程序 URL(和其他内容)
- javascript - 在网页上显示 Discord 服务器成员数?
- python - matplotlib.pyplot.savefig 需要很长时间
- bash - Bash:在单行(作为参数)上获得带空格的文件名的打乱列表?
- css - 静态django链接css文件
- javascript - 检查预定义角色并执行命令
- javascript - Javascript - 在 promise 和 await 之间不保存本地对象变量
- mysql - SQL 查询以零附加日期(月/日)值