2017-03-09 08:42:40 +01:00
<?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:id="@+id/notificationContent"
android:layout_width="match_parent"
android:layout_height="64dp"
android:background="@color/background_notification_color"
android:clickable="true"
2017-10-27 04:59:25 +02:00
android:focusable="true"
2017-03-09 08:42:40 +01:00
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/notificationCover"
android:layout_width="64dp"
android:layout_height="64dp"
android:scaleType="centerCrop"
android:src="@drawable/dummy_thumbnail"
tools:ignore="ContentDescription"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_weight="1"
android:orientation="vertical"
tools:ignore="RtlHardcoded">
<TextView
android:id="@+id/notificationSongName"
2017-04-17 06:20:14 +02:00
android:layout_width="match_parent"
android:ellipsize="end"
2017-03-09 08:42:40 +01:00
android:layout_height="wrap_content"
android:maxLines="1"
2017-04-17 06:20:14 +02:00
android:textSize="14sp"
2017-11-16 05:42:05 +01:00
android:textColor="@color/background_title_color"
2017-04-17 06:20:14 +02:00
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."/>
2017-03-09 08:42:40 +01:00
<TextView
android:id="@+id/notificationArtist"
2017-04-17 06:20:14 +02:00
android:layout_width="match_parent"
android:ellipsize="end"
2017-03-09 08:42:40 +01:00
android:layout_height="wrap_content"
android:maxLines="1"
2017-04-17 06:20:14 +02:00
android:textSize="12sp"
2017-11-16 05:42:05 +01:00
android:textColor="@color/background_subtext_color"
2017-04-17 06:20:14 +02:00
tools:text="Duis posuere arcu condimentum lobortis mattis."/>
2017-03-09 08:42:40 +01:00
</LinearLayout>
<ImageButton
2017-03-27 06:08:16 +02:00
android:id="@+id/notificationRepeat"
2017-03-09 08:42:40 +01:00
android:layout_width="40dp"
2017-03-27 06:08:16 +02:00
android:layout_height="match_parent"
android:background="#00000000"
android:clickable="true"
2017-10-27 04:59:25 +02:00
android:focusable="true"
2017-03-27 06:08:16 +02:00
android:padding="5dp"
android:scaleType="fitCenter"
android:src="@drawable/ic_repeat_white"
tools:ignore="ContentDescription"/>
<ImageButton
android:id="@+id/notificationPlayPause"
android:layout_width="45dp"
android:layout_height="match_parent"
android:background="#00000000"
2017-03-09 08:42:40 +01:00
android:clickable="true"
2017-10-27 04:59:25 +02:00
android:focusable="true"
2017-03-27 06:08:16 +02:00
android:src="@drawable/ic_pause_white"
2017-03-09 08:42:40 +01:00
tools:ignore="ContentDescription"/>
<ImageButton
android:id="@+id/notificationStop"
android:layout_width="40dp"
android:layout_height="40dp"
2017-03-27 06:08:16 +02:00
android:layout_marginLeft="5dp"
android:background="#00000000"
2017-03-09 08:42:40 +01:00
android:clickable="true"
2017-10-27 04:59:25 +02:00
android:focusable="true"
2017-03-27 06:08:16 +02:00
android:padding="5dp"
android:scaleType="fitCenter"
2017-04-26 21:24:33 +02:00
android:src="@drawable/ic_close_white_24dp"
2017-03-27 06:08:16 +02:00
tools:ignore="ContentDescription,RtlHardcoded"/>
2017-03-09 08:42:40 +01:00
</LinearLayout>