I also created header.xml, a reusable resource for displaying an avatar, title, user name, and time stamp. I also renamed some view id's to be more developer friendly Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
62 lines
2.3 KiB
XML
62 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical" >
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<QuickContactBadge
|
|
android:id="@+id/quickContactBadge"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentRight="true"
|
|
android:orientation="vertical"
|
|
android:gravity="right" >
|
|
|
|
<TextView
|
|
android:id="@+id/textView_user"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/user"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
<TextView
|
|
android:id="@+id/textView_date"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/date"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/textView_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_toRightOf="@+id/quickContactBadge"
|
|
android:paddingLeft="5dip"
|
|
android:text="@string/title"
|
|
android:gravity="center"
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<View
|
|
android:id="@+id/firstDivider"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dp"
|
|
android:background="#0099CC"
|
|
android:padding="10dip" />
|
|
|
|
</LinearLayout> |