[Android] Set audio player elevation

Geoffrey Métais git at videolan.org
Wed Mar 1 16:11:56 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Mar  1 16:00:57 2017 +0100| [c418caf868b863fe9e9f4ca6474b3bdbf77ebbbe] | committer: Geoffrey Métais

Set audio player elevation

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

 vlc-android/res/layout/info_activity.xml     | 1 +
 vlc-android/res/layout/playlist_activity.xml | 1 +
 vlc-android/res/values/dimens.xml            | 1 +
 3 files changed, 3 insertions(+)

diff --git a/vlc-android/res/layout/info_activity.xml b/vlc-android/res/layout/info_activity.xml
index e07509a..8543e91 100644
--- a/vlc-android/res/layout/info_activity.xml
+++ b/vlc-android/res/layout/info_activity.xml
@@ -163,6 +163,7 @@
             android:id="@+id/audio_player_container"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
+            android:elevation="@dimen/audio_player_elevation"
             android:visibility="gone"
             vlc:layout_behavior="android.support.design.widget.BottomSheetBehavior">
             <android.support.v7.widget.ViewStubCompat
diff --git a/vlc-android/res/layout/playlist_activity.xml b/vlc-android/res/layout/playlist_activity.xml
index f796c32..d915776 100644
--- a/vlc-android/res/layout/playlist_activity.xml
+++ b/vlc-android/res/layout/playlist_activity.xml
@@ -80,6 +80,7 @@
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:visibility="gone"
+            android:elevation="@dimen/audio_player_elevation"
             vlc:layout_behavior="android.support.design.widget.BottomSheetBehavior">
             <android.support.v7.widget.ViewStubCompat
                 android:id="@+id/audio_player_stub"
diff --git a/vlc-android/res/values/dimens.xml b/vlc-android/res/values/dimens.xml
index 8803ae5..1b0eb69 100644
--- a/vlc-android/res/values/dimens.xml
+++ b/vlc-android/res/values/dimens.xml
@@ -70,4 +70,5 @@
     <dimen name="fastscroller_track_width">6dp</dimen>
     <dimen name="fastscroller_track_padding">5dp</dimen>
     <dimen name="audio_player_cover_margin">30dp</dimen>
+    <dimen name="audio_player_elevation">16dp</dimen>
 </resources>
\ No newline at end of file



More information about the Android mailing list