Files
Positions/libappbase/src/main/res/drawable/btn_gray_bg.xml

15 lines
628 B
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- 按钮状态选择器:按优先级匹配(按压 > 禁用 > 默认) -->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 状态 1按压时手指按住→ 深灰色 -->
<item android:color="@color/btn_gray_pressed" android:state_pressed="true"/>
<!-- 状态 2禁用时setEnabled(false))→ 浅灰色 -->
<item android:color="@color/btn_gray_disabled" android:state_enabled="false"/>
<!-- 状态 3默认态正常可点击→ 常规灰色 -->
<item android:color="@color/btn_gray_normal"/>
</selector>