2016-01-02 16:08:18 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2016-02-21 18:12:00 +01:00
|
|
|
android:id="@+id/notificationContent"
|
2016-01-02 16:08:18 +01:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clickable="true"
|
2016-02-21 18:12:00 +01:00
|
|
|
android:background="@color/background_notification_color">
|
2016-02-19 13:22:49 +01:00
|
|
|
|
2016-01-02 16:08:18 +01:00
|
|
|
<ImageView
|
2016-02-19 13:22:49 +01:00
|
|
|
android:id="@+id/notificationCover"
|
2016-01-02 16:08:18 +01:00
|
|
|
android:layout_width="128dp"
|
|
|
|
android:layout_height="128dp"
|
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:src="@drawable/dummy_thumbnail"
|
|
|
|
android:scaleType="centerCrop"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
2016-02-19 13:22:49 +01:00
|
|
|
android:layout_above="@+id/notificationButtons"
|
|
|
|
android:layout_toRightOf="@+id/notificationCover"
|
2016-01-02 16:08:18 +01:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="vertical" >
|
|
|
|
|
|
|
|
<TextView
|
2016-02-19 13:22:49 +01:00
|
|
|
android:id="@+id/notificationSongName"
|
2016-01-02 16:08:18 +01:00
|
|
|
style="@android:style/TextAppearance.StatusBar.EventContent.Title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="40dp"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="title" />
|
|
|
|
|
|
|
|
<TextView
|
2016-02-19 13:22:49 +01:00
|
|
|
android:id="@+id/notificationArtist"
|
2016-01-02 16:08:18 +01:00
|
|
|
style="@android:style/TextAppearance.StatusBar.EventContent"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="marquee"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="artist" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageButton
|
2016-02-19 13:22:49 +01:00
|
|
|
android:id="@+id/notificationStop"
|
2016-01-02 16:08:18 +01:00
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:background="#00ffffff"
|
|
|
|
android:clickable="true"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/ic_close_white_24dp" />
|
|
|
|
|
2016-06-16 09:11:18 -04:00
|
|
|
|
2016-02-05 17:09:29 +01:00
|
|
|
<RelativeLayout
|
2016-02-19 13:22:49 +01:00
|
|
|
android:id="@+id/notificationButtons"
|
2016-02-05 17:09:29 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="50dp"
|
2016-02-19 13:22:49 +01:00
|
|
|
android:layout_alignBottom="@id/notificationCover"
|
2016-01-02 16:08:18 +01:00
|
|
|
android:layout_alignParentRight="true"
|
2016-02-19 13:22:49 +01:00
|
|
|
android:layout_toRightOf="@+id/notificationCover"
|
2016-01-02 16:08:18 +01:00
|
|
|
android:orientation="horizontal" >
|
|
|
|
|
|
|
|
<ImageButton
|
2016-02-19 13:22:49 +01:00
|
|
|
android:id="@+id/notificationPlayPause"
|
2016-02-05 17:09:29 +01:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2016-01-02 16:08:18 +01:00
|
|
|
android:background="#00ffffff"
|
|
|
|
android:clickable="true"
|
2016-02-05 17:09:29 +01:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/ic_pause_white_24dp"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_centerHorizontal="true" />
|
2016-06-16 09:11:18 -04:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/notificationRewind"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:background="#00ffffff"
|
|
|
|
android:clickable="true"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/ic_action_av_fast_rewind"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_alignParentLeft="true" />
|
2016-02-05 17:09:29 +01:00
|
|
|
</RelativeLayout>
|
2016-01-02 16:08:18 +01:00
|
|
|
|
|
|
|
</RelativeLayout>
|