[Android] Fix video player circle buttons constraints

Nicolas Pomepuy git at videolan.org
Wed Jul 24 15:18:29 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Tue Jul 23 14:19:51 2019 +0200| [2f5e22b05a9e77ad700b6208e777a940e81e388e] | committer: Geoffrey Métais

Fix video player circle buttons constraints

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

 vlc-android/res/layout/player_hud_right.xml | 34 ++++++++++++++---------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/vlc-android/res/layout/player_hud_right.xml b/vlc-android/res/layout/player_hud_right.xml
index 4e4b5e05b..bc751d621 100644
--- a/vlc-android/res/layout/player_hud_right.xml
+++ b/vlc-android/res/layout/player_hud_right.xml
@@ -37,7 +37,6 @@
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_gravity="center_vertical"
-                android:layout_marginBottom="8dp"
                 android:background="?attr/selectableItemBackgroundBorderless"
                 android:focusable="true"
                 android:visibility="gone"
@@ -47,44 +46,45 @@
                 app:srcCompat="@drawable/ic_playlist_circle_player"
                 tools:visibility="visible"
                 android:layout_marginEnd="4dp"
-                android:layout_marginTop="8dp"
-                app:layout_constraintTop_toBottomOf="@+id/player_overlay_title"/>
+                android:layout_marginTop="4dp"
+                app:layout_constraintTop_toBottomOf="@+id/player_overlay_title"
+                android:layout_marginBottom="4dp"/>
 
         <ImageView
                 android:id="@+id/video_secondary_display"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_gravity="center_vertical"
-                android:layout_marginBottom="8dp"
                 android:background="?attr/selectableItemBackgroundBorderless"
                 android:contentDescription="@string/video_remote_enable"
                 android:focusable="true"
                 android:onClick="onClick"
                 android:visibility="gone"
                 app:layout_constraintBottom_toTopOf="@+id/video_renderer"
-                app:layout_constraintEnd_toEndOf="@+id/playlist_toggle"
-                app:layout_constraintHorizontal_bias="0.5"
-                app:layout_constraintStart_toStartOf="@+id/playlist_toggle"
+                app:layout_constraintEnd_toEndOf="parent"
                 app:layout_constraintTop_toBottomOf="@+id/playlist_toggle"
                 app:srcCompat="@drawable/ic_screenshare_circle_player"
-                tools:visibility="visible"/>
+                tools:visibility="visible"
+                android:layout_marginEnd="4dp"
+                android:layout_marginTop="4dp"
+                android:layout_marginBottom="4dp"/>
 
         <ImageView
                 android:id="@+id/video_renderer"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_gravity="center_vertical"
-                android:layout_marginBottom="8dp"
                 android:background="?attr/selectableItemBackgroundBorderless"
                 android:focusable="true"
                 android:visibility="gone"
                 app:layout_constraintBottom_toTopOf="@+id/player_overlay_navmenu"
-                app:layout_constraintEnd_toEndOf="@+id/video_secondary_display"
-                app:layout_constraintHorizontal_bias="0.5"
-                app:layout_constraintStart_toStartOf="@+id/video_secondary_display"
+                app:layout_constraintEnd_toEndOf="parent"
                 app:layout_constraintTop_toBottomOf="@+id/video_secondary_display"
                 app:srcCompat="@drawable/ic_renderer_circle_player"
-                tools:visibility="visible"/>
+                tools:visibility="visible"
+                android:layout_marginEnd="4dp"
+                android:layout_marginTop="4dp"
+                android:layout_marginBottom="4dp"/>
 
         <ImageView
                 android:id="@+id/player_overlay_navmenu"
@@ -95,12 +95,12 @@
                 android:focusable="true"
                 android:visibility="gone"
                 app:layout_constraintBottom_toBottomOf="parent"
-                app:layout_constraintEnd_toEndOf="@+id/video_renderer"
-                app:layout_constraintHorizontal_bias="0.5"
-                app:layout_constraintStart_toStartOf="@+id/video_renderer"
+                app:layout_constraintEnd_toEndOf="parent"
                 app:layout_constraintTop_toBottomOf="@+id/video_renderer"
                 app:srcCompat="@drawable/ic_navmenu_circle_player"
-                tools:visibility="visible"/>
+                tools:visibility="visible"
+                android:layout_marginEnd="4dp"
+                android:layout_marginTop="4dp"/>
 
     </androidx.constraintlayout.widget.ConstraintLayout>
 



More information about the Android mailing list