<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/settings_unpressed" android:state_focused="false" android:state_pressed="false" android:state_selected="false"/>
<item android:drawable="@drawable/settings_unpressed" android:state_focused="false" android:state_pressed="false" android:state_selected="true"/>
<!-- Focused states -->
<item android:drawable="@drawable/settings_unpressed" android:state_focused="true" android:state_pressed="false" android:state_selected="false"/>
<item android:drawable="@drawable/settings_unpressed" android:state_pressed="false" android:state_selected="true"/>
<item android:drawable="@drawable/list_selector_pressed" android:state_pressed="true"/>
<item android:drawable="@android:color/transparent"/>
</selector>
我有一個listView,它有一個圓角,當我嘗試滾動我的listView的邊界變得銳利(像矩形)。任何人都可以告訴我,當我們滾動listView時,怎麼調用狀態。我在上面使用代碼但沒有結果,也許我應該有另一個狀態?listview狀態undefined