OSDN Git Service

Eleven: allow artwork to scale down
[android-x86/packages-apps-Eleven.git] / res / layout / activity_player_fragment.xml
index 3e47c08..cb5f47d 100644 (file)
@@ -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.
         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>