wulkanowy-mod/app/src/main/res/layout/item_message.xml

53 lines
1.9 KiB
XML
Raw Normal View History

2018-12-06 11:35:02 -06:00
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
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"
android:background="?attr/selectableItemBackground"
2018-12-06 11:35:02 -06:00
android:paddingLeft="16dp"
android:paddingTop="10dp"
android:paddingRight="16dp"
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"
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"
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"
tools:text="@tools:sample/lorem" />
2018-12-06 11:35:02 -06:00
</RelativeLayout>