2016-01-02 15:08:18 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-10-09 18:24:02 +00:00
<RelativeLayout xmlns:android= "http://schemas.android.com/apk/res/android"
2020-03-25 15:23:47 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2017-04-17 04:20:14 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/notificationContent"
android:layout_width="match_parent"
android:layout_height="128dp"
android:background="@color/background_notification_color"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/notificationCover"
android:layout_width="128dp"
android:layout_height="128dp"
android:layout_alignParentLeft="true"
android:scaleType="centerCrop"
android:src="@drawable/dummy_thumbnail"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription,RtlHardcoded" />
2017-04-17 04:20:14 +00:00
<ImageButton
android:id="@+id/notificationStop"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentRight="true"
android:background="#00000000"
android:clickable="true"
2017-10-22 19:43:49 +00:00
android:focusable="true"
2017-04-17 04:20:14 +00:00
android:padding="8dp"
android:scaleType="fitCenter"
2020-05-14 15:05:09 +00:00
app:srcCompat="@drawable/ic_close_white_24dp"
tools:ignore="ContentDescription,RtlHardcoded" />
2017-04-17 04:20:14 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toLeftOf="@+id/notificationStop"
android:layout_toRightOf="@+id/notificationCover"
android:orientation="vertical"
android:padding="8dp"
tools:ignore="RtlHardcoded,RtlSymmetry">
<TextView
android:id="@+id/notificationSongName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="2"
2017-11-16 04:42:05 +00:00
android:textColor="@color/background_title_color"
2020-10-09 18:24:02 +00:00
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." />
2017-04-17 04:20:14 +00:00
<TextView
android:id="@+id/notificationArtist"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
2017-11-16 04:42:05 +00:00
android:textColor="@color/background_subtext_color"
2020-10-09 18:24:02 +00:00
android:textSize="12sp"
tools:text="Duis posuere arcu condimentum lobortis mattis." />
2017-04-17 04:20:14 +00:00
</LinearLayout>
<ProgressBar
android:id="@+id/notificationProgressBar"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_alignTop="@+id/notificationControls"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_toRightOf="@+id/notificationCover"
android:progressDrawable="@drawable/custom_progress_bar"
tools:ignore="RtlHardcoded"
2020-10-09 18:24:02 +00:00
tools:progress="52" />
2017-04-17 04:20:14 +00:00
2017-06-08 14:58:50 +00:00
<TextView
android:id="@+id/notificationTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_alignTop="@+id/notificationProgressBar"
2017-10-22 19:43:49 +00:00
android:layout_marginStart="8dp"
2020-10-09 18:24:02 +00:00
android:layout_marginLeft="8dp"
2017-06-08 14:58:50 +00:00
android:layout_marginTop="2dp"
2017-10-22 19:43:49 +00:00
android:layout_toEndOf="@+id/notificationCover"
2020-10-09 18:24:02 +00:00
android:layout_toRightOf="@+id/notificationCover"
2017-06-08 14:58:50 +00:00
android:ellipsize="end"
android:maxLines="1"
2017-11-16 04:42:05 +00:00
android:textColor="@color/background_subtext_color"
2020-10-09 18:24:02 +00:00
android:textSize="12sp"
tools:text="Duis posuere" />
2017-06-08 14:58:50 +00:00
2017-04-17 04:20:14 +00:00
<RelativeLayout
android:id="@+id/notificationControls"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:layout_toRightOf="@+id/notificationCover"
android:orientation="horizontal"
2020-10-09 18:24:02 +00:00
android:paddingTop="10dp"
2017-04-17 04:20:14 +00:00
tools:ignore="RtlHardcoded">
<ImageButton
android:id="@+id/notificationRepeat"
2017-06-08 14:58:50 +00:00
android:layout_width="25dp"
android:layout_height="25dp"
2017-04-17 04:20:14 +00:00
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
2020-10-09 18:24:02 +00:00
android:layout_marginLeft="8dp"
2017-04-17 04:20:14 +00:00
android:background="#00000000"
android:clickable="true"
2017-10-22 19:43:49 +00:00
android:focusable="true"
2017-06-08 14:58:50 +00:00
android:scaleType="fitXY"
2020-03-31 19:42:49 +00:00
android:src="@drawable/exo_controls_repeat_all"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription" />
2017-04-17 04:20:14 +00:00
<ImageButton
android:id="@+id/notificationFRewind"
android:layout_width="40dp"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:layout_toLeftOf="@+id/notificationPlayPause"
android:background="#00000000"
android:clickable="true"
2017-10-22 19:43:49 +00:00
android:focusable="true"
2017-04-17 04:20:14 +00:00
android:padding="2dp"
android:scaleType="fitCenter"
2017-10-22 19:43:49 +00:00
android:src="@drawable/exo_controls_previous"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription" />
2017-04-17 04:20:14 +00:00
<ImageButton
android:id="@+id/notificationPlayPause"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:layout_toLeftOf="@+id/notificationFForward"
android:background="#00000000"
android:clickable="true"
2017-10-22 19:43:49 +00:00
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:padding="2dp"
2017-04-17 04:20:14 +00:00
android:scaleType="fitCenter"
2020-03-31 19:42:49 +00:00
android:src="@drawable/exo_controls_pause"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription" />
2017-04-17 04:20:14 +00:00
<ImageButton
android:id="@+id/notificationFForward"
android:layout_width="40dp"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="8dp"
android:background="#00000000"
android:clickable="true"
2017-10-22 19:43:49 +00:00
android:focusable="true"
2017-04-17 04:20:14 +00:00
android:padding="2dp"
android:scaleType="fitCenter"
2017-10-22 19:43:49 +00:00
android:src="@drawable/exo_controls_next"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription" />
2017-04-17 04:20:14 +00:00
</RelativeLayout>
2020-05-14 15:05:09 +00:00
</RelativeLayout>