選中時和未選中時的背景顏色和文字顏色的改變

1.在你的項目Res--drawable--選中右鍵new--Drawable resource filehtml 2.在裏面寫代碼android <selector xmlns:android="http://schemas.android.com/apk/res/android"> <!--true 是你選中時的狀態 drawable="@color/baise" 這裏你也能夠
相關文章
相關標籤/搜索