ListView 中item背景问题
各位大虾,再这里有一个问题困扰了狠久,就是ListView 中item背景的问题
我的listView的xml 是这样写的
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <ListView android:id="@+id/listView1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:listSelector="@drawable/list_item_selected" android:drawSelectorOnTop="true" android:divider="@null" android:cacheColorHint="#00000000" android:focusable="true" > </ListView></LinearLayout>
<?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/list_bg_focus" /> <item android:state_focused="true" android:drawable="@drawable/list_bg_focus" /> <item android:state_pressed="false" android:state_focused ="false" android:drawable="@drawable/list_bg_normal" />