直接上代码:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="70dp"
android:orientation="horizontal"
>
<RelativeLayout
android:id="@+id/private_list_item"
android:layout_width="match_parent"
android:layout_height="70dp"
android:layout_toLeftOf="@id/cb_private_contact"
android:orientation="horizontal"
android:paddingBottom="10dp"
android:paddingTop="10dp" >
<ImageView
android:id="@+id/headImg"
android:layout_width="50dp"
android:layout_height="50dp"