2017-03-09 04:42:40 -03: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"
|
|
|
|
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"
|
|
|
|
style="@android:style/TextAppearance.StatusBar.EventContent.Title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:maxLines="1"
|
2017-03-27 01:08:16 -03:00
|
|
|
tools:text="a long, long, long, long, long title"/>
|
2017-03-09 04:42:40 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/notificationArtist"
|
|
|
|
style="@android:style/TextAppearance.StatusBar.EventContent"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:maxLines="1"
|
2017-03-27 01:08:16 -03:00
|
|
|
tools:text="a long, long artist"/>
|
2017-03-09 04:42:40 -03:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageButton
|
2017-03-27 01:08:16 -03:00
|
|
|
android:id="@+id/notificationRepeat"
|
2017-03-09 04:42:40 -03:00
|
|
|
android:layout_width="40dp"
|
2017-03-27 01:08:16 -03:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="#00000000"
|
|
|
|
android:clickable="true"
|
|
|
|
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 04:42:40 -03:00
|
|
|
android:clickable="true"
|
2017-03-27 01:08:16 -03:00
|
|
|
android:src="@drawable/ic_pause_white"
|
2017-03-09 04:42:40 -03:00
|
|
|
tools:ignore="ContentDescription"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/notificationStop"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2017-03-27 01:08:16 -03:00
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:background="#00000000"
|
2017-03-09 04:42:40 -03:00
|
|
|
android:clickable="true"
|
2017-03-27 01:08:16 -03:00
|
|
|
android:padding="5dp"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:src="@drawable/ic_close_white"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
2017-03-09 04:42:40 -03:00
|
|
|
</LinearLayout>
|