summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTetsuo Osaka <tetsugit@gmail.com>2017-05-24 14:34:57 +0200
committerArne Coucheron <arco68@gmail.com>2017-07-31 23:57:46 +0000
commit53016936e167f21dc9868d9007a238319ae55c24 (patch)
treee3ca486331b69f1c9d3ee80d767a5f098b2467fd
parentadeb6e5bff004c1f18e7a37e4e1e4d1170d1501e (diff)
downloadandroid_packages_apps_Eleven-53016936e167f21dc9868d9007a238319ae55c24.tar.gz
android_packages_apps_Eleven-53016936e167f21dc9868d9007a238319ae55c24.tar.bz2
android_packages_apps_Eleven-53016936e167f21dc9868d9007a238319ae55c24.zip
Eleven: allow artwork to scale down
when not enough vertical space is available for controls and artwork in player view Change-Id: If8cc0957b096d3bd7630668b25afcc89e2f69778
-rw-r--r--res/layout/activity_player_fragment.xml18
1 files changed, 16 insertions, 2 deletions
diff --git a/res/layout/activity_player_fragment.xml b/res/layout/activity_player_fragment.xml
index 3e47c08..cb5f47d 100644
--- a/res/layout/activity_player_fragment.xml
+++ b/res/layout/activity_player_fragment.xml
@@ -2,6 +2,7 @@
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
+ Copyright (C) 2017 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -25,7 +26,20 @@
android:id="@+id/audio_player_header"
layout="@layout/audio_player_header_bar" />
- <include layout="@layout/main_album_flow" />
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="7"
+ android:gravity="center_horizontal">
- <include layout="@layout/main_playback_controls" />
+ <include layout="@layout/main_album_flow" />
+ </RelativeLayout>
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="3">
+
+ <include layout="@layout/main_playback_controls" />
+ </RelativeLayout>
</LinearLayout>