2018-12-06 11:35:02 -06:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-02-14 15:23:52 -06:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-12-06 11:35:02 -06:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-02-14 15:23:52 -06:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2018-12-06 11:35:02 -06:00
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingRight="16dp"
|
2019-02-14 15:23:52 -06:00
|
|
|
android:paddingBottom="10dp"
|
|
|
|
tools:context=".ui.modules.message.MessageItem">
|
2018-12-06 11:35:02 -06:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/messageItemAuthor"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_marginEnd="40dp"
|
|
|
|
android:layout_marginRight="40dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="15sp"
|
2019-02-14 15:23:52 -06:00
|
|
|
tools:text="@tools:sample/full_names" />
|
2018-12-06 11:35:02 -06:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/messageItemDate"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_toEndOf="@id/messageItemAuthor"
|
|
|
|
android:layout_toRightOf="@id/messageItemAuthor"
|
|
|
|
android:gravity="end"
|
|
|
|
android:textSize="13sp"
|
2019-02-14 15:23:52 -06:00
|
|
|
tools:text="@tools:sample/date/mmddyy" />
|
2018-12-06 11:35:02 -06:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/messageItemSubject"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/messageItemAuthor"
|
|
|
|
android:layout_alignStart="@id/messageItemAuthor"
|
|
|
|
android:layout_alignLeft="@id/messageItemAuthor"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:attr/android:textColorSecondary"
|
|
|
|
android:textSize="12sp"
|
2019-02-14 15:23:52 -06:00
|
|
|
tools:text="@tools:sample/lorem" />
|
2018-12-06 11:35:02 -06:00
|
|
|
|
|
|
|
</RelativeLayout>
|