[Android] Equalizer: center vertically the toggle button

Adrien Maglo git at videolan.org
Tue Mar 4 11:17:29 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue Mar  4 11:17:05 2014 +0100| [bff055d3b95b8c3e54a0957b5c877956c2feb88a] | committer: Adrien Maglo

Equalizer: center vertically the toggle button

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

 vlc-android/res/layout-land/equalizer.xml |    3 ++-
 vlc-android/res/layout/equalizer.xml      |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/layout-land/equalizer.xml b/vlc-android/res/layout-land/equalizer.xml
index 95f20ea..a7769c3 100644
--- a/vlc-android/res/layout-land/equalizer.xml
+++ b/vlc-android/res/layout-land/equalizer.xml
@@ -12,7 +12,8 @@
         <ToggleButton
             android:id="@+id/equalizer_button"
             android:layout_width="wrap_content"
-            android:layout_height="wrap_content" />
+            android:layout_height="wrap_content"
+            android:layout_gravity="center_vertical" />
 
         <Spinner
             android:id="@+id/equalizer_presets"
diff --git a/vlc-android/res/layout/equalizer.xml b/vlc-android/res/layout/equalizer.xml
index fd06a7d..fecfa65 100644
--- a/vlc-android/res/layout/equalizer.xml
+++ b/vlc-android/res/layout/equalizer.xml
@@ -12,7 +12,8 @@
         <ToggleButton
             android:id="@+id/equalizer_button"
             android:layout_width="wrap_content"
-            android:layout_height="wrap_content" />
+            android:layout_height="wrap_content"
+            android:layout_gravity="center_vertical" />
 
         <Spinner
             android:id="@+id/equalizer_presets"



More information about the Android mailing list