<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/customer_all_scorer_selector" android:state_pressed="true"/> <item android:drawable="@drawable/customer_all_scorer"/> </selector>
android selector 写法
最新推荐文章于 2021-10-10 22:09:18 发布
本文介绍了一种使用XML定义的UI状态选择器实现方式,该选择器可在不同状态下为Android UI元素提供不同的视觉反馈,例如当按钮被按下时显示特定样式。
434

被折叠的 条评论
为什么被折叠?



