[Android] Video player: reduce space between contron buttons
Geoffrey Métais
git at videolan.org
Fri Jun 21 11:38:01 CEST 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jun 21 11:36:52 2019 +0200| [36fdb30510cc792211cab9e3558784a9f0eb87b1] | committer: Geoffrey Métais
Video player: reduce space between contron buttons
Change horizontal chain from ConstraintSet.CHAIN_SPREAD_INSIDE to ConstraintSet.CHAIN_SPREAD
> https://code.videolan.org/videolan/vlc-android/commit/36fdb30510cc792211cab9e3558784a9f0eb87b1
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 64fbc7500..56a78cca1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -2201,7 +2201,7 @@ open class VideoPlayerActivity : AppCompatActivity(), IPlaybackSettingsControlle
controlsConstraintSetPortrait.setMargin(R.id.player_overlay_time_container, ConstraintSet.START, resources.getDimensionPixelSize(R.dimen.time_margin_sides))
controlsConstraintSetPortrait.setMargin(R.id.player_overlay_length_container, ConstraintSet.END, resources.getDimensionPixelSize(R.dimen.time_margin_sides))
- val chainIds = arrayOf(R.id.lock_overlay_button, R.id.playlist_previous, R.id.player_overlay_rewind, R.id.player_overlay_play, R.id.player_overlay_forward, R.id.playlist_next, R.id.player_overlay_tracks)
+ val chainIds = intArrayOf(R.id.lock_overlay_button, R.id.playlist_previous, R.id.player_overlay_rewind, R.id.player_overlay_play, R.id.player_overlay_forward, R.id.playlist_next, R.id.player_overlay_tracks)
chainIds.forEach {
controlsConstraintSetPortrait.clear(it, ConstraintSet.START)
@@ -2211,7 +2211,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_SPREAD_INSIDE)
+ controlsConstraintSetPortrait.createHorizontalChain(ConstraintSet.PARENT_ID, ConstraintSet.LEFT, ConstraintSet.PARENT_ID, ConstraintSet.RIGHT, chainIds, null, ConstraintSet.CHAIN_SPREAD)
resetHudLayout()
updateOverlayPausePlay(true)
More information about the Android
mailing list