[Android] Video player hud: adjust spaces

Geoffrey Métais git at videolan.org
Tue Jun 18 09:30:29 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jun 17 11:56:58 2019 +0200| [1d484ff0496f298100db59aa5fa7498c98d68aca] | committer: Geoffrey Métais

Video player hud: adjust spaces

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

 vlc-android/res/layout/player_hud.xml                        | 12 ++++++------
 vlc-android/res/values/dimens.xml                            |  1 +
 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt    |  3 +--
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/vlc-android/res/layout/player_hud.xml b/vlc-android/res/layout/player_hud.xml
index ef9f727a6..0743f0628 100644
--- a/vlc-android/res/layout/player_hud.xml
+++ b/vlc-android/res/layout/player_hud.xml
@@ -65,10 +65,10 @@
             android:layoutDirection="ltr"
             android:maxHeight="@dimen/seekbar_height"
             android:minHeight="@dimen/seekbar_height"
-            android:paddingStart="0dp"
-            android:paddingEnd="0dp"
-            android:layout_marginStart="@dimen/time_margin_sides"
-            android:layout_marginEnd="@dimen/time_margin_sides"
+            android:paddingStart="8dp"
+            android:paddingEnd="8dp"
+            android:layout_marginStart="@dimen/seek_margin_sides"
+            android:layout_marginEnd="@dimen/seek_margin_sides"
             android:progress="@{(int)progress.time}"
             android:progressDrawable="@drawable/po_seekbar_video"
             android:splitTrack="false"
@@ -85,8 +85,8 @@
             android:layout_marginStart="@dimen/time_margin_sides"
             android:layout_marginBottom="8dp"
             vlc:layout_constraintBottom_toBottomOf="parent"
-            vlc:layout_constraintHorizontal_chainStyle="spread_inside"
             vlc:layout_constraintStart_toStartOf="parent"
+            vlc:layout_constraintEnd_toStartOf="@+id/lock_overlay_button"
             vlc:layout_constraintTop_toBottomOf="@+id/player_overlay_seekbar">
 
             <TextView
@@ -117,7 +117,6 @@
             vlc:layout_constraintBottom_toBottomOf="parent"
             vlc:layout_constraintEnd_toStartOf="@+id/player_overlay_tracks"
             vlc:layout_constraintHorizontal_bias="0.5"
-            vlc:layout_constraintHorizontal_chainStyle="spread"
             vlc:layout_constraintStart_toEndOf="@+id/player_overlay_time_container"
             vlc:layout_constraintTop_toBottomOf="@+id/player_overlay_seekbar"
             vlc:srcCompat="@drawable/ic_lock_player" />
@@ -291,6 +290,7 @@
             android:layout_marginBottom="8dp"
             vlc:layout_constraintBottom_toBottomOf="parent"
             vlc:layout_constraintEnd_toEndOf="parent"
+            vlc:layout_constraintStart_toEndOf="@+id/player_overlay_size"
             vlc:layout_constraintTop_toBottomOf="@+id/player_overlay_seekbar">
 
             <TextView
diff --git a/vlc-android/res/values/dimens.xml b/vlc-android/res/values/dimens.xml
index 0bdba7ed1..f71b332ee 100644
--- a/vlc-android/res/values/dimens.xml
+++ b/vlc-android/res/values/dimens.xml
@@ -31,6 +31,7 @@
 
     <dimen name="seekbar_height">1dip</dimen>
     <dimen name="images_margin_sides">10dp</dimen>
+    <dimen name="seek_margin_sides">8dp</dimen>
     <dimen name="time_margin_sides">16dp</dimen>
 
 
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index efa1a8f45..b169f305d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -2221,8 +2221,7 @@ open class VideoPlayerActivity : AppCompatActivity(), IPlaybackSettingsControlle
                     controlsConstraintSetPortrait.connect(it, ConstraintSet.BOTTOM, ConstraintSet.PARENT_ID, ConstraintSet.BOTTOM)
                 }
 
-
-                controlsConstraintSetPortrait.createHorizontalChain(ConstraintSet.PARENT_ID, ConstraintSet.LEFT, ConstraintSet.PARENT_ID, ConstraintSet.RIGHT, chainIds.toIntArray(), null, ConstraintSet.CHAIN_PACKED)
+                controlsConstraintSetPortrait.createHorizontalChain(ConstraintSet.PARENT_ID, ConstraintSet.LEFT, ConstraintSet.PARENT_ID, ConstraintSet.RIGHT, chainIds.toIntArray(), null, ConstraintSet.CHAIN_SPREAD_INSIDE)
 
 
 



More information about the Android mailing list