[Android] Audioplayer: Reduce bottom margin
Geoffrey Métais
git at videolan.org
Wed Feb 13 12:04:10 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Feb 13 11:42:50 2019 +0100| [51f60772a72effc969d2e975136a931bf502588a] | committer: Geoffrey Métais
Audioplayer: Reduce bottom margin
> https://code.videolan.org/videolan/vlc-android/commit/51f60772a72effc969d2e975136a931bf502588a
---
vlc-android/res/layout/audio_player.xml | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index c7123512f..663e50308 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -223,23 +223,21 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|start"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintBottom_toTopOf="@+id/timeline"
android:layout_marginStart="@dimen/default_margin"
android:clickable="true"
+ android:focusable="true"
android:onClick="@{fragment::onTimeLabelClick}"
android:text="@string/time_0"
android:textSize="12sp"
- android:focusable="true" />
+ app:layout_constraintBottom_toTopOf="@+id/timeline"
+ app:layout_constraintStart_toStartOf="parent" />
<SeekBar
android:id="@+id/timeline"
android:layout_width="0dp"
android:layout_height="wrap_content"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintBottom_toBottomOf="parent"
- android:layout_marginBottom="@dimen/audio_player_seekbar_bottom_margin"
+ android:layout_marginBottom="16dp"
+ android:layout_marginTop="@dimen/half_default_margin"
android:focusable="true"
android:maxHeight="1dip"
android:minHeight="1dip"
@@ -247,29 +245,32 @@
android:paddingRight="@dimen/half_default_margin"
android:progressDrawable="@drawable/po_seekbar"
android:splitTrack="false"
- android:thumb="@drawable/seekbar_thumb" />
+ android:thumb="@drawable/seekbar_thumb"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/length"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|end"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintBottom_toTopOf="@+id/timeline"
android:layout_marginEnd="@dimen/default_margin"
- android:text="@string/time_0"
android:contentDescription="@string/length"
- android:textSize="12sp" />
+ android:text="@string/time_0"
+ android:textSize="12sp"
+ app:layout_constraintBottom_toTopOf="@+id/timeline"
+ app:layout_constraintEnd_toEndOf="parent" />
<ImageView
android:id="@+id/shuffle"
android:layout_width="40dp"
android:layout_height="40dp"
- app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintLeft_toLeftOf="@+id/time"
app:layout_constraintRight_toLeftOf="@+id/previous"
app:layout_constraintBottom_toBottomOf="@+id/play_pause"
app:layout_constraintTop_toTopOf="@+id/play_pause"
- app:layout_constraintHorizontal_chainStyle="spread"
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
android:contentDescription="@string/shuffle_title"
android:focusable="true"
android:scaleType="fitXY"
@@ -280,7 +281,7 @@
android:id="@+id/repeat"
android:layout_width="40dp"
android:layout_height="40dp"
- app:layout_constraintRight_toRightOf="parent"
+ app:layout_constraintRight_toRightOf="@+id/length"
app:layout_constraintLeft_toRightOf="@+id/next"
app:layout_constraintBottom_toBottomOf="@+id/play_pause"
app:layout_constraintTop_toTopOf="@+id/play_pause"
@@ -295,7 +296,7 @@
android:id="@+id/play_pause"
android:layout_width="64dp"
android:layout_height="64dp"
- app:layout_constraintBottom_toTopOf="@+id/timeline"
+ app:layout_constraintBottom_toTopOf="@+id/time"
app:layout_constraintLeft_toRightOf="@+id/previous"
app:layout_constraintRight_toLeftOf="@+id/next"
android:contentDescription="@string/play"
More information about the Android
mailing list