Audinaut-subsonic-app-android/app/src/main/res/layout/notification_expanded.xml

98 lines
3.5 KiB
XML
Raw Normal View History

2016-12-18 18:41:30 +01:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2019-08-24 20:28:41 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2016-12-18 18:41:30 +01:00
android:layout_width="fill_parent"
android:layout_height="128dp"
2018-03-25 03:28:28 +02:00
android:orientation="horizontal">
2016-12-18 18:41:30 +01:00
2018-03-24 20:25:12 +01:00
<ImageView
android:id="@+id/notification_image"
android:layout_width="128dp"
android:layout_height="128dp"
android:gravity="center" />
2016-12-18 18:41:30 +01:00
2018-03-24 20:25:12 +01:00
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
2018-03-25 03:28:28 +02:00
android:paddingLeft="11.0dip">
2016-12-18 18:41:30 +01:00
2018-03-24 20:25:12 +01:00
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2016-12-18 18:41:30 +01:00
2018-03-24 20:25:12 +01:00
<TextView
android:id="@+id/notification_title"
style="@style/NotificationText.Title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
2018-03-25 03:28:28 +02:00
android:layout_weight="1"
2018-03-24 20:25:12 +01:00
android:ellipsize="marquee"
android:focusable="true"
2018-03-25 03:28:28 +02:00
android:singleLine="true" />
2016-12-18 18:41:30 +01:00
2018-03-24 20:25:12 +01:00
<ImageButton
android:id="@+id/notification_close"
2018-03-25 03:28:28 +02:00
style="@style/NotificationButton"
2018-03-24 20:25:12 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
2019-08-24 20:28:41 +02:00
app:srcCompat="@drawable/notification_close"
2018-03-25 03:28:28 +02:00
android:visibility="invisible" />
2018-03-24 20:25:12 +01:00
</LinearLayout>
2016-12-18 18:41:30 +01:00
2018-03-24 20:25:12 +01:00
<TextView
android:id="@+id/notification_artist"
style="@style/NotificationText.Content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:ellipsize="end"
2018-03-25 03:28:28 +02:00
android:maxLines="1"
android:scrollHorizontally="true" />
2016-12-18 18:41:30 +01:00
2018-03-24 20:25:12 +01:00
<TextView
android:id="@+id/notification_album"
style="@style/NotificationText.Content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:ellipsize="end"
android:maxLines="1"
2018-03-25 03:28:28 +02:00
android:paddingBottom="10dp"
android:scrollHorizontally="true" />
2016-12-18 18:41:30 +01:00
2018-03-24 20:25:12 +01:00
<ImageView
style="@style/NotificationDivider"
android:layout_width="fill_parent"
2018-03-25 03:28:28 +02:00
android:layout_height="1dp" />
2016-12-18 18:41:30 +01:00
2018-03-24 20:25:12 +01:00
<LinearLayout
2018-03-25 03:28:28 +02:00
style="@style/NotificationLayoutDivider"
2018-03-24 20:25:12 +01:00
android:layout_width="fill_parent"
2018-03-25 03:28:28 +02:00
android:layout_height="0dp"
2018-03-24 20:25:12 +01:00
android:layout_weight="1"
android:orientation="horizontal"
2018-03-25 03:28:28 +02:00
android:showDividers="middle">
2016-12-18 18:41:30 +01:00
2018-03-24 20:25:12 +01:00
<ImageButton
android:id="@+id/control_previous"
style="@style/NotificationButton.Expanded"
app:srcCompat="@drawable/notification_media_backward" />
2018-03-24 20:25:12 +01:00
<ImageButton
android:id="@+id/control_pause"
style="@style/NotificationButton.Expanded"
app:srcCompat="@drawable/notification_media_pause" />
2018-03-24 20:25:12 +01:00
<ImageButton
android:id="@+id/control_next"
style="@style/NotificationButton.Expanded"
app:srcCompat="@drawable/notification_media_forward" />
2018-03-24 20:25:12 +01:00
</LinearLayout>
</LinearLayout>
2016-12-18 18:41:30 +01:00
</LinearLayout>