[Android] Fix "Play as audio" button display
Geoffrey Métais
git at videolan.org
Mon Sep 24 11:45:07 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Sep 24 11:44:12 2018 +0200| [a6329e5d0065f649bccb17edfca25b5e321ce95c] | committer: Geoffrey Métais
Fix "Play as audio" button display
> https://code.videolan.org/videolan/vlc-android/commit/a6329e5d0065f649bccb17edfca25b5e321ce95c
---
vlc-android/res/layout-land/audio_player.xml | 6 +++++-
vlc-android/res/layout/audio_player.xml | 13 ++++++++-----
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/vlc-android/res/layout-land/audio_player.xml b/vlc-android/res/layout-land/audio_player.xml
index 3b0d8ec81..3a57bb023 100644
--- a/vlc-android/res/layout-land/audio_player.xml
+++ b/vlc-android/res/layout-land/audio_player.xml
@@ -63,9 +63,13 @@
android:layout_height="32dp"
android:layout_marginStart="@dimen/default_margin"
android:layout_marginEnd="@dimen/half_default_margin"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
android:focusable="true"
android:scaleType="fitXY"
android:visibility="gone"
+ tools:visibility="visible"
android:onClick="@{fragment::onResumeToVideoClick}"
android:contentDescription="@string/play_as_audio"
android:src="?attr/ic_playasaudio_off" />
@@ -74,7 +78,7 @@
android:id="@+id/audio_media_switcher"
android:layout_width="0dp"
android:layout_height="wrap_content"
- app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintStart_toEndOf="@+id/playlist_playasaudio_off"
app:layout_constraintEnd_toStartOf="@+id/barrier"
android:background="#00000000" />
diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index 8c3a86097..e942fae65 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -62,19 +62,22 @@
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginStart="@dimen/default_margin"
- android:layout_marginEnd="@dimen/half_default_margin"
+ android:contentDescription="@string/play_as_audio"
android:focusable="true"
+ android:onClick="@{fragment::onResumeToVideoClick}"
android:scaleType="fitXY"
+ android:src="?attr/ic_playasaudio_off"
android:visibility="gone"
- android:onClick="@{fragment::onResumeToVideoClick}"
- android:contentDescription="@string/play_as_audio"
- android:src="?attr/ic_playasaudio_off" />
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ tools:visibility="visible" />
<org.videolan.vlc.gui.view.HeaderMediaSwitcher
android:id="@+id/audio_media_switcher"
android:layout_width="0dp"
android:layout_height="wrap_content"
- app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintStart_toEndOf="@+id/playlist_playasaudio_off"
app:layout_constraintEnd_toStartOf="@+id/barrier"
android:background="#00000000" />
More information about the Android
mailing list