[Android] Fix header media list activity layout on tablets
Nicolas Pomepuy
git at videolan.org
Wed Oct 18 13:53:03 UTC 2023
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Oct 16 14:19:30 2023 +0200| [1f3760806f8a081c091640704978ca1460fc2760] | committer: Duncan McNamara
Fix header media list activity layout on tablets
Fixes #2994
> https://code.videolan.org/videolan/vlc-android/commit/1f3760806f8a081c091640704978ca1460fc2760
---
.../vlc-android/res/layout/header_media_list_activity.xml | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/application/vlc-android/res/layout/header_media_list_activity.xml b/application/vlc-android/res/layout/header_media_list_activity.xml
index 57814be760..b7fee6a9dc 100644
--- a/application/vlc-android/res/layout/header_media_list_activity.xml
+++ b/application/vlc-android/res/layout/header_media_list_activity.xml
@@ -242,7 +242,7 @@
vlc:layout_behavior="@string/appbar_scrolling_view_behavior"
android:layout_height="match_parent">
- <RelativeLayout
+ <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -250,10 +250,13 @@
android:id="@+id/songs"
android:layout_width="@dimen/default_content_width"
android:layout_height="match_parent"
- android:layout_gravity="center_horizontal|top"
+ android:layout_gravity="center_horizontal"
android:background="?attr/background_default"
android:clipToPadding="false"
android:fastScrollEnabled="true"
+ vlc:layout_constraintTop_toTopOf="parent"
+ vlc:layout_constraintStart_toStartOf="parent"
+ vlc:layout_constraintEnd_toEndOf="parent"
android:paddingBottom="64dp"
tools:layout_width="match_parent" />
@@ -261,9 +264,9 @@
android:id="@+id/browser_fast_scroller"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:layout_alignParentEnd="true"
- android:layout_alignParentRight="true"/>
- </RelativeLayout>
+ vlc:layout_constraintTop_toTopOf="parent"
+ vlc:layout_constraintEnd_toEndOf="parent"/>
+ </androidx.constraintlayout.widget.ConstraintLayout>
</org.videolan.vlc.gui.view.SwipeRefreshLayout>
More information about the Android
mailing list