问题如题:
在自己开发使用list 的时候总是不能将这个问题忘掉
解决办法:
<ListView android:id="@android :id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:drawSelectorOnTop="false"/>
<!--
<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/list"
android:layout_gravity="center"/>-->
注意绿色的字体id是应该写成@android :id/list