我想在ListView拆分项目,以获得相同的结果三星的联系电话列表中的ListView:拆分的ListView项目为两列
当在左/右列点击,只有该列的背景发生变化。我试图插入一个图像按钮到一列列表视图,但是当不直接点击按钮时,整行的背景会发生变化(包括ImageButton的背景)。
如何获得与三星相同的ListView?
我想在ListView拆分项目,以获得相同的结果三星的联系电话列表中的ListView:拆分的ListView项目为两列
当在左/右列点击,只有该列的背景发生变化。我试图插入一个图像按钮到一列列表视图,但是当不直接点击按钮时,整行的背景会发生变化(包括ImageButton的背景)。
如何获得与三星相同的ListView?
我用这个代码,并为我好
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:weightSum="3" >
<Button
android:id="@+id/text"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:drawableRight="@drawable/ic_launcher"
android:gravity="center_vertical"
android:text="trtrtrt" />
<ImageButton
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ic_launcher" />
</LinearLayout>
使用android:listSelector="@null"
列表中的XML工作,如果它不工作,那么我想看看到你的代码,如果你可以将它张贴。