[Android] Fix album view layout

Geoffrey Métais git at videolan.org
Thu Feb 2 09:59:30 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb  2 09:58:19 2017 +0100| [a1b34b1f690d5d09d3a82b1e256fa37147eea15e] | committer: Geoffrey Métais

Fix album view layout

> https://code.videolan.org/videolan/vlc-android/commit/a1b34b1f690d5d09d3a82b1e256fa37147eea15e
---

 vlc-android/res/layout/audio_album.xml | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/vlc-android/res/layout/audio_album.xml b/vlc-android/res/layout/audio_album.xml
index a77c937..e88294b 100644
--- a/vlc-android/res/layout/audio_album.xml
+++ b/vlc-android/res/layout/audio_album.xml
@@ -6,17 +6,21 @@
 
     <ImageView
         android:id="@+id/album_cover"
-        android:layout_width="match_parent"
+        android:layout_width="0dp"
         android:layout_height="150dp"
         app:layout_constraintTop_toTopOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
         android:scaleType="centerCrop"
         android:src="@drawable/background_cone" />
     <org.videolan.vlc.gui.view.ContextMenuRecyclerView
         android:id="@+id/songs"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
+        android:layout_width="0dp"
+        android:layout_height="0dp"
         app:layout_constraintTop_toBottomOf="@+id/album_cover"
-        android:nestedScrollingEnabled="true"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
         android:clipToPadding="false"
         android:fastScrollEnabled="true"
         android:paddingBottom="@dimen/listview_bottom_padding"
@@ -35,7 +39,11 @@
         android:layout_marginEnd="25dp"
         android:src="@drawable/ic_fab_play"
         android:tint="@color/grey50" />
-    <include layout="@layout/shadow_top"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content" />
+
+    <include
+        layout="@layout/shadow_top"
+        android:layout_width="0dp"
+        android:layout_height="wrap_content"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintEnd_toEndOf="parent" />
 </android.support.constraint.ConstraintLayout>
\ No newline at end of file



More information about the Android mailing list