From 18b038d8e43ca9a85771eb40286108921590494f Mon Sep 17 00:00:00 2001 From: Mauricio Colli Date: Mon, 17 Apr 2017 01:20:14 -0300 Subject: [PATCH] Improve notification layouts --- .../main/res/drawable/custom_progress_bar.xml | 17 ++ .../main/res/layout/player_notification.xml | 110 ++++++++----- .../layout/player_notification_expanded.xml | 151 +++++++++++++++++- .../res/layout/player_popup_notification.xml | 15 +- 4 files changed, 250 insertions(+), 43 deletions(-) create mode 100644 app/src/main/res/drawable/custom_progress_bar.xml diff --git a/app/src/main/res/drawable/custom_progress_bar.xml b/app/src/main/res/drawable/custom_progress_bar.xml new file mode 100644 index 000000000..251cde171 --- /dev/null +++ b/app/src/main/res/drawable/custom_progress_bar.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/player_notification.xml b/app/src/main/res/layout/player_notification.xml index 22a60418b..c7b70fb56 100644 --- a/app/src/main/res/layout/player_notification.xml +++ b/app/src/main/res/layout/player_notification.xml @@ -1,16 +1,17 @@ - + @@ -18,65 +19,102 @@ android:id="@+id/notificationCover" android:layout_width="64dp" android:layout_height="64dp" + android:scaleType="centerCrop" android:src="@drawable/dummy_thumbnail" - android:scaleType="centerCrop"/> + tools:ignore="ContentDescription"/> + android:orientation="vertical" + tools:ignore="RtlHardcoded"> + android:maxLines="1" + android:textSize="14sp" + tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis nec aliquam augue, eget cursus est. Ut id tristique enim, ut scelerisque tellus. Sed ultricies ipsum non mauris ultricies, commodo malesuada velit porta."/> + android:maxLines="1" + android:textSize="12sp" + tools:text="Duis posuere arcu condimentum lobortis mattis."/> + android:padding="5dp" + android:scaleType="fitCenter" + android:src="@drawable/ic_repeat_white" + tools:ignore="ContentDescription"/> + + + android:src="@drawable/ic_pause_white" + tools:ignore="ContentDescription"/> + + + android:padding="5dp" + android:scaleType="fitCenter" + android:src="@drawable/ic_close_white" + tools:ignore="ContentDescription,RtlHardcoded"/> - - \ No newline at end of file + + \ No newline at end of file diff --git a/app/src/main/res/layout/player_notification_expanded.xml b/app/src/main/res/layout/player_notification_expanded.xml index 4a81d2ca3..46c22a451 100644 --- a/app/src/main/res/layout/player_notification_expanded.xml +++ b/app/src/main/res/layout/player_notification_expanded.xml @@ -1,4 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/player_popup_notification.xml b/app/src/main/res/layout/player_popup_notification.xml index 10cc20a45..efe46f609 100644 --- a/app/src/main/res/layout/player_popup_notification.xml +++ b/app/src/main/res/layout/player_popup_notification.xml @@ -29,20 +29,23 @@ + android:textSize="14sp" + tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis nec aliquam augue, eget cursus est. Ut id tristique enim, ut scelerisque tellus. Sed ultricies ipsum non mauris ultricies, commodo malesuada velit porta."/> + android:textSize="12sp" + tools:text="Duis posuere arcu condimentum lobortis mattis."/> +