summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTetsuo Osaka <tetsugit@gmail.com>2017-05-24 14:34:57 +0200
committerArne Coucheron <arco68@gmail.com>2017-08-11 07:31:35 +0200
commit906f495693db5d942e15d40aca8f21f21424f167 (patch)
tree7e96592c2f166de79b7bf1d163218ec6e134eac2
parent267c28c0083cef3efdc29972790b4e293d1174eb (diff)
downloadandroid_packages_apps_Eleven-906f495693db5d942e15d40aca8f21f21424f167.tar.gz
android_packages_apps_Eleven-906f495693db5d942e15d40aca8f21f21424f167.tar.bz2
android_packages_apps_Eleven-906f495693db5d942e15d40aca8f21f21424f167.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>