jamfish/app/src/main/res/layout-v21/notification_playing.xml
Karim Abou Zeid 32f76f5418 - git (re)init (git structure was corrupted)
- added shuffler and repeat mode
- xxxhdpi icons
- typos
- new styles
- not fully working playing queue [alpha]
2015-01-25 01:05:25 +01:00

99 lines
3.8 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
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:internal="http://schemas.android.com/apk/prv/res/android"
android:layout_width="match_parent"
android:layout_height="64dp"
android:orientation="horizontal"
internal:layout_maxHeight="64dp"
internal:layout_minHeight="64dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<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:gravity="center_vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="fill_vertical"
android:paddingLeft="@dimen/notification_info_container_padding_left"
android:paddingBottom="@dimen/notification_info_container_padding_bottom"
android:layout_weight="1"
android:minHeight="@dimen/notification_big_icon_height"
android:orientation="vertical">
<TextView
android:textAppearance="@style/Theme.MaterialMusic.Notification.Title"
android:singleLine="true"
android:id="@+id/song_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:singleLine="true"
android:textAppearance="@style/Theme.MaterialMusic.Notification"
android:id="@+id/song_artist"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout
android:id="@+id/media_actions"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginRight="6dp"
android:layout_marginLeft="6dp"
android:orientation="horizontal"
>
<ImageButton
android:id="@+id/button_toggle_playpause"
style="@style/NotificationButton"
android:src="@drawable/ic_play_arrow_white_48dp"
/>
<ImageButton
android:id="@+id/button_next"
style="@style/NotificationButton"
android:src="@drawable/ic_skip_next_white_48dp"/>
<ImageButton
android:tint="@color/notification_buttons_tint"
android:layout_weight="1"
android:background="@drawable/notification_selector"
android:id="@+id/button_quit"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:padding="16dp"
android:src="@drawable/close"/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>