88 lines
3.4 KiB
XML
88 lines
3.4 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
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="64dp"
|
|
android:orientation="horizontal"
|
|
tools:ignore="ContentDescription">
|
|
|
|
<ImageView
|
|
android:id="@+id/album_art"
|
|
android:layout_width="@dimen/notification_big_icon_width"
|
|
android:layout_height="@dimen/notification_big_icon_height"
|
|
android:layout_weight="0"
|
|
android:scaleType="centerCrop" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="fill_vertical"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="@dimen/notification_big_icon_height"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/notification_info_container_padding_bottom"
|
|
android:paddingLeft="@dimen/notification_info_container_padding_left"
|
|
android:paddingStart="@dimen/notification_info_container_padding_left">
|
|
|
|
<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" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/media_actions"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="6dp"
|
|
android:layout_marginRight="6dp"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_toggle_play_pause"
|
|
style="@style/NotificationButton"
|
|
android:paddingBottom="16dp"
|
|
android:paddingTop="16dp"
|
|
android:src="@drawable/ic_play_arrow_white_48dp" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_next"
|
|
style="@style/NotificationButton"
|
|
android:paddingBottom="16dp"
|
|
android:paddingTop="16dp"
|
|
android:src="@drawable/ic_skip_next_white_48dp" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_quit"
|
|
style="@style/NotificationButton"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_close_white_24dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|