You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/facebook/examples/Hackbook/res/layout/friend_item.xml

34 lines
1.3 KiB
XML

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:padding="6dip"
android:layout_height="?android:attr/listPreferredItemHeight"
android:id="@+id/friend_item">
<ImageView
android:id="@+id/profile_pic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="6dip" />
<TextView
android:id="@+id/name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/profile_pic"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_alignWithParentIfMissing="true"
android:gravity="center_vertical" />
<TextView
android:id="@+id/info"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/profile_pic"
android:layout_below="@id/name"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_alignWithParentIfMissing="true"
android:singleLine="true"
android:ellipsize="marquee" />
</RelativeLayout>