modify notification display

This commit is contained in:
Nathan Freitas 2017-03-22 12:47:54 -04:00
parent c0d082ed78
commit 7dbae837de
2 changed files with 12 additions and 8 deletions

View File

@ -73,7 +73,7 @@
android:singleLine="true"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:textAppearance="@style/NotificationText"
android:textAppearance="@style/NotificationTitle"
/>
<TextView android:id="@+id/info"
android:layout_width="wrap_content"
@ -83,7 +83,7 @@
android:singleLine="true"
android:gravity="center"
android:paddingStart="8dp"
android:textAppearance="@style/NotificationText"
android:textAppearance="@style/NotificationTitle"
/>
<ImageView android:id="@+id/right_icon"
android:layout_width="16dp"

View File

@ -30,9 +30,12 @@
android:layout_height="wrap_content"
android:layout_gravity="fill_vertical"
android:layout_marginStart="@dimen/notification_large_icon_width"
android:layout_marginLeft="@dimen/notification_large_icon_width"
android:minHeight="@dimen/notification_large_icon_height"
android:orientation="vertical"
android:paddingEnd="8dp"
android:paddingRight="8dp"
android:paddingTop="2dp"
android:paddingBottom="2dp"
android:gravity="top"
@ -43,6 +46,7 @@
android:layout_height="wrap_content"
android:paddingTop="6dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:orientation="horizontal"
>
<TextView android:id="@+id/title"
@ -53,7 +57,6 @@
android:fadingEdge="horizontal"
android:layout_weight="1"
android:textStyle="bold"
android:textAppearance="@style/NotificationTitle"
/>
</LinearLayout>
@ -62,7 +65,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginStart="8dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
>
<TextView android:id="@+id/text"
android:layout_width="0dp"
@ -72,7 +76,6 @@
android:singleLine="true"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:textAppearance="@style/NotificationText"
/>
<TextView android:id="@+id/info"
android:layout_width="wrap_content"
@ -82,14 +85,14 @@
android:singleLine="true"
android:gravity="center"
android:paddingStart="8dp"
android:textAppearance="@style/NotificationText"
android:paddingLeft="8dp"
/>
<ImageView android:id="@+id/right_icon"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_gravity="center"
android:layout_weight="0"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:scaleType="centerInside"
android:visibility="gone"
/>
@ -115,7 +118,8 @@
android:layout_height="wrap_content"
android:layout_marginTop="-2dp"
android:layout_marginBottom="-2dp"
android:layout_marginStart="8dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:fadingEdge="horizontal"
/>
</LinearLayout>