[Android] Fix PlaylistActivity recyclerview positionning

Geoffrey Métais git at videolan.org
Fri Jan 25 16:09:46 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jan 25 16:08:26 2019 +0100| [8677681fd57b4ecd10eef9b784d662f9d58036b0] | committer: Geoffrey Métais

Fix PlaylistActivity recyclerview positionning

Fix #737

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

 vlc-android/res/layout/playlist_activity.xml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/vlc-android/res/layout/playlist_activity.xml b/vlc-android/res/layout/playlist_activity.xml
index 2ab39b4a2..07bf0837b 100644
--- a/vlc-android/res/layout/playlist_activity.xml
+++ b/vlc-android/res/layout/playlist_activity.xml
@@ -17,12 +17,11 @@
         <com.google.android.material.appbar.AppBarLayout
             android:id="@+id/appbar"
             android:layout_width="match_parent"
-            android:layout_height="200dp"
-            android:fitsSystemWindows="true">
+            android:layout_height="wrap_content" >
             <com.google.android.material.appbar.CollapsingToolbarLayout
                 android:id="@+id/collapsing_toolbar"
                 android:layout_width="match_parent"
-                android:layout_height="match_parent"
+                android:layout_height="wrap_content"
                 android:fitsSystemWindows="true"
                 vlc:title="@{playlist.title}"
                 vlc:theme="@style/Toolbar.VLC"
@@ -35,7 +34,7 @@
                 <ImageView
                     android:id="@+id/playlist_cover"
                     android:layout_width="match_parent"
-                    android:layout_height="match_parent"
+                    android:layout_height="192dp"
                     android:scaleType="centerCrop"
                     android:src="@{cover}"
                     vlc:layout_collapseMode="parallax" />
@@ -57,8 +56,9 @@
             android:id="@+id/songs"
             android:layout_width="@dimen/default_content_width"
             android:layout_height="match_parent"
+            android:paddingTop="24dp"
+            android:clipToPadding="false"
             android:fastScrollEnabled="true"
-            android:layout_gravity="center_horizontal"
             android:scrollbars="vertical"
             vlc:layout_behavior="@string/appbar_scrolling_view_behavior" />
 



More information about the Android mailing list