121 lines
4.5 KiB
XML
121 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Copyright (C) 2014 The Android Open Source Project
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License
|
|
-->
|
|
|
|
<!-- Layout to be used with only max 3 actions. It has a much larger picture at the left side-->
|
|
<RelativeLayout xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/status_bar_latest_event_content"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="128dp"
|
|
tools:ignore="ContentDescription">
|
|
|
|
<ImageView
|
|
android:id="@+id/album_art"
|
|
android:layout_width="@dimen/notification_albumart_size"
|
|
android:layout_height="@dimen/notification_albumart_size"
|
|
android:scaleType="centerCrop" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_quit"
|
|
style="@style/NotificationButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_gravity="center"
|
|
android:background="?android:selectableItemBackground"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_close_white_24dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toLeftOf="@+id/button_quit"
|
|
android:layout_toStartOf="@+id/button_quit"
|
|
android:layout_toRightOf="@+id/album_art"
|
|
android:layout_toEndOf="@+id/album_art"
|
|
android:gravity="center"
|
|
android:minHeight="@dimen/notification_big_icon_height"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="16dp"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="12dp">
|
|
|
|
<TextView
|
|
android:id="@+id/song_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/Theme.MaterialMusic.Notification.Title" />
|
|
|
|
<TextView
|
|
android:id="@+id/song_artist"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/Theme.MaterialMusic.Notification" />
|
|
|
|
<TextView
|
|
android:id="@+id/album_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/Theme.MaterialMusic.Notification" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/media_actions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_toRightOf="@+id/album_art"
|
|
android:layout_toEndOf="@+id/album_art"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_prev"
|
|
style="@style/NotificationButton"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_skip_previous_white_48dp" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_toggle_play_pause"
|
|
style="@style/NotificationButton"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_play_arrow_white_48dp" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_next"
|
|
style="@style/NotificationButton"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_skip_next_white_48dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/action_divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_above="@+id/media_actions"
|
|
android:layout_toRightOf="@+id/album_art"
|
|
android:layout_toEndOf="@+id/album_art"
|
|
android:background="@drawable/notification_template_divider_media" />
|
|
|
|
</RelativeLayout>
|