[Android] Fix Audio play queue position
Nicolas Pomepuy
git at videolan.org
Mon Jul 5 11:15:50 UTC 2021
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Jun 25 07:39:58 2021 +0200| [ed44a73a7842c49fdcce5323c05241127faf99ea] | committer: Nicolas Pomepuy
Fix Audio play queue position
> https://code.videolan.org/videolan/vlc-android/commit/ed44a73a7842c49fdcce5323c05241127faf99ea
---
application/vlc-android/res/layout/audio_player.xml | 13 +++++++++++--
.../src/org/videolan/vlc/gui/audio/AudioPlayer.kt | 1 -
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/application/vlc-android/res/layout/audio_player.xml b/application/vlc-android/res/layout/audio_player.xml
index 387a46fad..53b40f687 100644
--- a/application/vlc-android/res/layout/audio_player.xml
+++ b/application/vlc-android/res/layout/audio_player.xml
@@ -302,8 +302,8 @@
android:layout_centerHorizontal="true"
android:clipToPadding="false"
android:layout_gravity="center_horizontal"
- android:paddingBottom="@dimen/listview_bottom_padding"
- app:layout_constraintBottom_toTopOf="@+id/timeline" />
+ android:paddingBottom="68dp"
+ app:layout_constraintBottom_toTopOf="@+id/songs_list_guide" />
<TextView
android:id="@+id/audio_play_progress"
@@ -355,6 +355,15 @@
app:layout_constraintTop_toTopOf="@+id/length"
app:layout_constraintBottom_toBottomOf="@+id/length" />
+ <View
+ android:id="@+id/songs_list_guide"
+ android:layout_width="0dp"
+ android:layout_height="1dp"
+ app:layout_constraintBottom_toBottomOf="@id/timeline"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="@id/timeline" />
+
<SeekBar
android:id="@+id/timeline"
android:layout_width="0dp"
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
index 82a0c780c..84e0a1148 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
@@ -361,7 +361,6 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, IAudioPlay
binding.timeline.progress = progress.time.toInt()
binding.progressBar.progress = progress.time.toInt()
}
- binding.songsList.setPadding(binding.songsList.paddingLeft, binding.songsList.paddingTop, binding.songsList.paddingRight, binding.audioPlayProgress.height + 8.dp)
lifecycleScope.launchWhenStarted {
val text = withContext(Dispatchers.Default) {
More information about the Android
mailing list