Android Selector遇到的坑

来源:互联网 发布:中科院虹膜数据库 编辑:程序博客网 时间:2024/05/16 00:44
<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android">    <item android:state_pressed="true" android:drawable="@drawable/tv_bg_press"/>    <item android:drawable="@drawable/tv_bg_normal"/></selector>
遇到一个这样的问题,<item android:drawable="@drawable/tv_bg_normal" 和<item android:state_pressed="true" android:drawable="@drawable/tv_bg_press"/>顺序不能调到。还不知道是什么原因,不写状态属性,它的值不是默认false么?
0 0
原创粉丝点击