[Android] Fix the bookmarks empty view position when changing orientation

Nicolas Pomepuy git at videolan.org
Mon Feb 28 06:24:16 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Feb 25 09:30:47 2022 +0100| [39998959f92135d5785ca58ec64eafcb8bbf0289] | committer: Nicolas Pomepuy

Fix the bookmarks empty view position when changing orientation

Fixes #2412

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

 application/vlc-android/res/layout/bookmarks.xml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/application/vlc-android/res/layout/bookmarks.xml b/application/vlc-android/res/layout/bookmarks.xml
index a0addd88c..9651c33d2 100644
--- a/application/vlc-android/res/layout/bookmarks.xml
+++ b/application/vlc-android/res/layout/bookmarks.xml
@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
         xmlns:app="http://schemas.android.com/apk/res-auto"
-        xmlns:tools="http://schemas.android.com/tools"
         android:id="@+id/bookmarks_background"
         android:layout_width="match_parent"
         android:background="?attr/bookmark_background"
@@ -92,10 +91,10 @@
             android:layout_height="wrap_content"
             android:gravity="center_horizontal"
             android:orientation="vertical"
-            app:layout_constraintBottom_toBottomOf="@+id/bookmark_list"
-            app:layout_constraintEnd_toEndOf="@+id/bookmark_list"
-            app:layout_constraintStart_toStartOf="@+id/bookmark_list"
-            app:layout_constraintTop_toBottomOf="@+id/top_bar">
+            app:layout_constraintBottom_toBottomOf="parent"
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toTopOf="parent">
 
         <androidx.appcompat.widget.AppCompatImageView
                 android:layout_width="wrap_content"



More information about the Android mailing list