Improve readability for unread state

This commit is contained in:
Moez Bhatti
2017-09-26 16:35:34 -04:00
parent 9c826ff71e
commit a6ecbb3696
2 changed files with 89 additions and 5 deletions
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingBottom="8dp"
android:paddingEnd="16dp"
android:paddingStart="16dp"
android:paddingTop="8dp">
<com.moez.QKSMS.ui.view.GroupAvatarView
android:id="@+id/avatars"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="top" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/title"
style="@style/TextPrimary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
android:layout_weight="1"
android:textStyle="bold"
tools:text="Moez Bhatti" />
<TextView
android:id="@+id/date"
style="@style/TextTertiary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/textPrimary"
android:textStyle="bold"
tools:text="Oct 11" />
</LinearLayout>
<TextView
android:id="@+id/snippet"
style="@style/TextSecondary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="2dp"
android:ellipsize="end"
android:textColor="@color/textPrimary"
android:textStyle="bold"
tools:text="Hey! How's it going?" />
</LinearLayout>
</LinearLayout>