<?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 写法
最新推荐文章于 2024-05-04 16:18:59 发布
本文介绍了一种使用XML定义的UI状态选择器实现方式,该选择器可在不同状态下为Android UI元素提供不同的视觉反馈,例如当按钮被按下时显示特定样式。
335





