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

132 lines
5.0 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"
2019-10-29 14:49:28 +00:00
xmlns:tools="http://schemas.android.com/tools"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2020-05-09 09:18:29 +00:00
android:layout_height="wrap_content"
tools:background="@color/md_red_500">
2018-07-27 13:07:33 +00:00
2019-10-29 14:49:28 +00:00
<RelativeLayout
android:id="@+id/image"
android:layout_width="match_parent"
2018-07-27 13:07:33 +00:00
android:layout_height="wrap_content"
2019-10-29 14:49:28 +00:00
android:layout_alignBottom="@+id/content"
android:layout_alignParentEnd="true">
<ImageView
android:id="@+id/largeIcon"
android:layout_width="@dimen/notification_big_image_size"
android:layout_height="@dimen/notification_big_image_size"
android:layout_alignParentEnd="true"
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />
</RelativeLayout>
2018-08-01 06:51:27 +00:00
<LinearLayout
2019-10-29 14:49:28 +00:00
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:orientation="vertical"
android:paddingStart="0dp"
android:paddingTop="8dp"
android:paddingEnd="144dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/smallIcon"
2019-10-30 15:05:19 +00:00
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_marginStart="16dp"
2019-12-10 14:36:28 +00:00
tools:src="@drawable/ic_notification"
2019-10-29 14:49:28 +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"
2019-10-29 14:49:28 +00:00
tools:text="@string/app_name" />
</LinearLayout>
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:lines="1"
android:paddingStart="16dp"
android:paddingEnd="0dp"
android:singleLine="true"
2019-11-04 17:09:07 +00:00
android:textAppearance="@style/Theme.RetroMusic.Notification"
2019-10-29 14:49:28 +00:00
android:textStyle="bold"
tools:text="@tools:sample/lorem/random" />
<TextView
android:id="@+id/subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:lines="1"
android:paddingStart="16dp"
android:paddingEnd="0dp"
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" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
2019-10-30 15:05:19 +00:00
android:orientation="horizontal"
android:paddingStart="8dp"
android:paddingEnd="0dp">
2019-10-29 14:49:28 +00:00
2019-11-04 17:09:07 +00:00
<ImageButton
2019-10-29 14:49:28 +00:00
android:id="@+id/action_prev"
android:layout_width="42dp"
android:layout_height="42dp"
2019-11-04 17:09:07 +00:00
android:background="@drawable/notification_selector"
2019-10-30 15:05:19 +00:00
android:scaleType="centerInside"
tools:src="@drawable/ic_skip_previous_round_white_32dp"
tools:tint="?colorOnPrimary" />
2019-10-29 14:49:28 +00:00
2019-11-04 17:09:07 +00:00
<ImageButton
2019-10-29 14:49:28 +00:00
android:id="@+id/action_play_pause"
android:layout_width="42dp"
android:layout_height="42dp"
2019-11-04 17:09:07 +00:00
android:background="@drawable/notification_selector"
2019-10-30 15:05:19 +00:00
android:scaleType="centerInside"
tools:src="@drawable/ic_pause_white_48dp"
tools:tint="?colorOnPrimary" />
2019-10-29 14:49:28 +00:00
2019-11-04 17:09:07 +00:00
<ImageButton
2019-10-29 14:49:28 +00:00
android:id="@+id/action_next"
android:layout_width="42dp"
android:layout_height="42dp"
2019-11-04 17:09:07 +00:00
android:background="@drawable/notification_selector"
2019-10-30 15:05:19 +00:00
android:scaleType="centerInside"
tools:src="@drawable/ic_skip_next_round_white_32dp"
tools:tint="?colorOnPrimary" />
2019-10-29 14:49:28 +00:00
2019-11-04 17:09:07 +00:00
<ImageButton
2019-10-29 14:49:28 +00:00
android:id="@+id/action_quit"
android:layout_width="42dp"
android:layout_height="42dp"
2019-11-04 17:09:07 +00:00
android:background="@drawable/notification_selector"
2019-10-30 15:05:19 +00:00
android:scaleType="centerInside"
2020-07-19 21:00:30 +00:00
tools:src="@drawable/ic_close"
2019-10-30 15:05:19 +00:00
tools:tint="?colorOnPrimary" />
2019-10-29 14:49:28 +00:00
</LinearLayout>
2018-07-27 13:07:33 +00:00
</LinearLayout>
</RelativeLayout>