这是您的操作方式:
首先,在您的中
ListView,输入以下内容:
android:listSelector="#00000000"
这使您的listSelector(单击列表视图时通常看到的颜色)透明。
接下来,将
LinearLayout项目布局的设置为此:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/selector" android:orientation="horizontal" >
几天前我遇到了同样的问题,我花了很长时间才弄清楚这一点。希望它对您有用!



