[Android] FlaotingActionButton : workaround to fix elevation and ripple color

Alexandre Perraud git at videolan.org
Fri Jun 5 16:37:09 CEST 2015


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Fri Jun  5 15:41:14 2015 +0200| [9e16096b8e4ef59f5f77c22de0c98a7bb0d1c405] | committer: Alexandre Perraud

FlaotingActionButton : workaround to fix elevation and ripple color

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=9e16096b8e4ef59f5f77c22de0c98a7bb0d1c405
---

 vlc-android/res/layout-land/media_info.xml   |    2 ++
 vlc-android/res/layout/audio_album.xml       |    5 ++++-
 vlc-android/res/layout/audio_browser.xml     |    3 +++
 vlc-android/res/layout/directory_browser.xml |    6 +++++-
 vlc-android/res/layout/media_info.xml        |    2 ++
 5 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/layout-land/media_info.xml b/vlc-android/res/layout-land/media_info.xml
index 5eb9dec..9fb4d89 100644
--- a/vlc-android/res/layout-land/media_info.xml
+++ b/vlc-android/res/layout-land/media_info.xml
@@ -2,6 +2,7 @@
 
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:baselineAligned="false"
@@ -33,6 +34,7 @@
                 android:scaleType="centerCrop" />
 
             <android.support.design.widget.FloatingActionButton
+                app:rippleColor="@color/orange50"
                 android:id="@+id/play"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
diff --git a/vlc-android/res/layout/audio_album.xml b/vlc-android/res/layout/audio_album.xml
index 048d921..defdf99 100644
--- a/vlc-android/res/layout/audio_album.xml
+++ b/vlc-android/res/layout/audio_album.xml
@@ -1,5 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent" android:layout_height="match_parent">
 
     <ImageView
@@ -21,6 +23,7 @@
         android:paddingRight="10dp"
         style="@style/Theme.VLC.List"/>
     <android.support.design.widget.FloatingActionButton
+        app:rippleColor="@color/orange50"
         android:id="@+id/album_play"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
diff --git a/vlc-android/res/layout/audio_browser.xml b/vlc-android/res/layout/audio_browser.xml
index 63771b5..31d0f1b 100644
--- a/vlc-android/res/layout/audio_browser.xml
+++ b/vlc-android/res/layout/audio_browser.xml
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent">
 
@@ -113,6 +114,8 @@
         android:layout_below="@+id/sliding_tabs" />
 
     <android.support.design.widget.FloatingActionButton
+        app:borderWidth="0dp"
+        app:rippleColor="@color/orange50"
         android:id="@+id/fab_play_shuffle_all"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
diff --git a/vlc-android/res/layout/directory_browser.xml b/vlc-android/res/layout/directory_browser.xml
index 2c2ef52..82123b1 100644
--- a/vlc-android/res/layout/directory_browser.xml
+++ b/vlc-android/res/layout/directory_browser.xml
@@ -1,5 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent"
     android:layout_height="match_parent">
     <org.videolan.vlc.widget.SwipeRefreshLayout
@@ -26,6 +28,8 @@
     <include layout="@layout/shadow_top"/>
 
     <android.support.design.widget.FloatingActionButton
+        app:borderWidth="0dp"
+        app:rippleColor="@color/orange50"
         android:id="@+id/fab_add_custom_dir"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
diff --git a/vlc-android/res/layout/media_info.xml b/vlc-android/res/layout/media_info.xml
index 3e624f4..6d42a24 100644
--- a/vlc-android/res/layout/media_info.xml
+++ b/vlc-android/res/layout/media_info.xml
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:orientation="vertical" >
@@ -28,6 +29,7 @@
                 android:scaleType="fitCenter" />
 
             <android.support.design.widget.FloatingActionButton
+                app:rippleColor="@color/orange50"
                 android:id="@+id/play"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"



More information about the Android mailing list