Button不同狀態背景

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/rr_c5daff_3"  android:state_enabled="false"/>
    <item android:drawable="@drawable/rr_0d63f8_3"  android:state_pressed="true"/>
    <item android:drawable="@drawable/rr_2a76fd_3"  android:state_enabled="true"/>
</selector>

Button狀態是否改變成功與state的描述循序有關。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章