PlayerAndroid/app/src/main/res/layout/layout_notification_collaps...

145 lines
5.2 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-09-23 10:04:43 +00:00
xmlns:tools="http://schemas.android.com/tools"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-10-30 15:09:55 +00:00
tools:background="@color/md_red_500"
2018-09-23 10:04:43 +00:00
tools:ignore="ContentDescription">
<RelativeLayout
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignBottom="@+id/content"
android:layout_alignParentEnd="true">
<ImageView
android:id="@+id/largeIcon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:adjustViewBounds="true"
2019-10-29 14:49:28 +00:00
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />
2018-09-23 10:04:43 +00:00
</RelativeLayout>
<LinearLayout
android:id="@+id/app"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="48dp"
android:gravity="center_vertical"
android:orientation="horizontal"
2019-10-30 15:09:55 +00:00
android:paddingStart="4dp"
2019-10-29 14:49:28 +00:00
android:paddingTop="4dp"
2018-09-23 10:04:43 +00:00
android:paddingEnd="8dp">
<ImageView
android:id="@+id/smallIcon"
2019-11-01 17:10:37 +00:00
android:layout_width="14dp"
android:layout_height="14dp"
2018-09-23 10:04:43 +00:00
android:layout_marginStart="8dp"
2019-12-10 14:36:28 +00:00
tools:src="@drawable/ic_notification"
2018-09-23 10:04:43 +00:00
tools:tint="@color/md_black_1000" />
<TextView
android:id="@+id/appName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:ellipsize="end"
android:lines="1"
android:singleLine="true"
2019-12-10 14:36:28 +00:00
android:textSize="12sp"
2018-09-23 10:04:43 +00:00
tools:text="@string/app_name" />
</LinearLayout>
<LinearLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/app"
android:layout_alignParentStart="true"
android:layout_toStartOf="@id/actions"
android:orientation="vertical"
2019-10-30 15:09:55 +00:00
android:paddingStart="12dp"
2019-10-31 17:06:13 +00:00
android:paddingEnd="12dp"
2019-11-01 17:10:37 +00:00
android:paddingBottom="8dp">
2018-09-23 10:04:43 +00:00
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:lines="1"
android:singleLine="true"
2019-11-04 17:09:07 +00:00
android:textAppearance="@style/Theme.RetroMusic.Notification"
2018-09-23 10:04:43 +00:00
android:textStyle="bold"
2019-10-29 14:49:28 +00:00
tools:text="@tools:sample/lorem/random" />
2018-09-23 10:04:43 +00:00
<TextView
android:id="@+id/subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:lines="1"
android:singleLine="true"
2019-11-04 17:09:07 +00:00
android:textAppearance="@style/Theme.RetroMusic.Notification.Title"
2019-10-29 14:49:28 +00:00
tools:text="@tools:sample/lorem/random" />
2018-09-23 10:04:43 +00:00
</LinearLayout>
<LinearLayout
android:id="@+id/actions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/content"
android:layout_alignBottom="@id/content"
android:layout_alignParentEnd="true"
android:layout_gravity="bottom"
android:layout_marginEnd="48dp"
android:orientation="horizontal">
2019-11-04 17:09:07 +00:00
<ImageButton
2018-09-23 10:04:43 +00:00
android:id="@+id/action_prev"
2019-10-29 14:49:28 +00:00
android:layout_width="38dp"
android:layout_height="38dp"
2019-11-04 17:09:07 +00:00
android:background="@drawable/notification_selector"
2019-10-29 14:49:28 +00:00
android:scaleType="centerInside"
android:src="@drawable/ic_skip_previous_round_white_32dp"
2019-10-30 15:05:19 +00:00
tools:tint="?colorOnPrimary" />
2018-09-23 10:04:43 +00:00
2019-11-04 17:09:07 +00:00
<ImageButton
2018-09-23 10:04:43 +00:00
android:id="@+id/action_play_pause"
2019-10-29 14:49:28 +00:00
android:layout_width="38dp"
android:layout_height="38dp"
2019-11-04 17:09:07 +00:00
android:background="@drawable/notification_selector"
2019-10-29 14:49:28 +00:00
android:scaleType="centerInside"
2020-07-19 21:00:30 +00:00
android:src="@drawable/ic_pause"
2019-10-30 15:05:19 +00:00
tools:tint="?colorOnPrimary" />
2018-09-23 10:04:43 +00:00
2019-11-04 17:09:07 +00:00
<ImageButton
2018-09-23 10:04:43 +00:00
android:id="@+id/action_next"
2019-10-29 14:49:28 +00:00
android:layout_width="38dp"
android:layout_height="38dp"
2019-11-04 17:09:07 +00:00
android:background="@drawable/notification_selector"
2019-10-29 14:49:28 +00:00
android:scaleType="centerInside"
android:src="@drawable/ic_skip_next_round_white_32dp"
2019-10-30 15:05:19 +00:00
tools:tint="?colorOnPrimary" />
2018-09-23 10:04:43 +00:00
2019-11-04 17:09:07 +00:00
<ImageButton
2018-09-23 10:04:43 +00:00
android:id="@+id/action_quit"
2019-10-29 14:49:28 +00:00
android:layout_width="38dp"
android:layout_height="38dp"
2019-11-04 17:09:07 +00:00
android:background="@drawable/notification_selector"
2018-09-23 10:04:43 +00:00
android:scaleType="centerInside"
android:visibility="gone" />
2019-11-04 17:09:07 +00:00
<ImageButton
2019-10-29 14:49:28 +00:00
android:layout_width="38dp"
android:layout_height="38dp"
2019-11-04 17:09:07 +00:00
android:background="@drawable/notification_selector"
2018-09-23 10:04:43 +00:00
android:scaleType="centerInside" />
</LinearLayout>
2018-07-27 13:07:33 +00:00
</RelativeLayout>