[Android] Advanced options: fix the layout of the equalizer item

Adrien Maglo git at videolan.org
Mon Mar 10 19:53:09 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Mar 10 19:53:01 2014 +0100| [6d96b9a27e4a7600f0e74ad4bfbf191be2fa5324] | committer: Adrien Maglo

Advanced options: fix the layout of the equalizer item

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

 vlc-android/res/layout/advanced_options.xml |   26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/vlc-android/res/layout/advanced_options.xml b/vlc-android/res/layout/advanced_options.xml
index c5511d9..99b5657 100644
--- a/vlc-android/res/layout/advanced_options.xml
+++ b/vlc-android/res/layout/advanced_options.xml
@@ -45,14 +45,26 @@
         android:text="@string/subtitle_label"
         android:textAppearance="?android:attr/textAppearanceMedium" />
 
-    <TextView
-        android:id="@+id/equalizer"
+    <LinearLayout
         android:layout_width="match_parent"
-        android:layout_height="40dp"
-        android:layout_margin="10dp"
+        android:layout_height="wrap_content"
+        android:layout_margin="5dp"
         android:background="@drawable/background_item"
-        android:drawableLeft="?attr/ic_equalizer_normal_style"
-        android:text="@string/equalizer"
-        android:textAppearance="?android:attr/textAppearanceMedium" />
+        android:orientation="horizontal" >
+
+        <ImageView
+            android:id="@+id/icon"
+            android:layout_width="40dp"
+            android:layout_height="40dp"
+            android:src="?attr/ic_equalizer_normal_style" />
+
+        <TextView
+            android:id="@+id/equalizer"
+            android:layout_height="match_parent"
+            android:layout_width="match_parent"
+            android:gravity="center_vertical"
+            android:text="@string/equalizer"
+            android:textAppearance="?android:attr/textAppearanceMedium" />
+    </LinearLayout>
 
 </LinearLayout>
\ No newline at end of file



More information about the Android mailing list