[Android] Layout optimizations

Geoffrey Métais git at videolan.org
Thu Oct 22 18:25:23 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Oct 22 18:24:58 2015 +0200| [0c01508ac453c0b29d6db569b34670c3c782e15b] | committer: Geoffrey Métais

Layout optimizations

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

 vlc-android/res/layout-land/equalizer.xml  |    2 +-
 vlc-android/res/layout/audio_player.xml    |    2 +-
 vlc-android/res/layout/native_crash.xml    |    2 +-
 vlc-android/res/layout/video_grid_card.xml |    2 +-
 vlc-android/res/layout/video_list_card.xml |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/vlc-android/res/layout-land/equalizer.xml b/vlc-android/res/layout-land/equalizer.xml
index f0b8f2e..1987789 100644
--- a/vlc-android/res/layout-land/equalizer.xml
+++ b/vlc-android/res/layout-land/equalizer.xml
@@ -22,7 +22,7 @@
 
         <SeekBar
             android:id="@+id/equalizer_preamp"
-            android:layout_width="match_parent"
+            android:layout_width="0dp"
             android:layout_height="wrap_content"
             android:layout_gravity="center_vertical"
             android:layout_weight="1"
diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index cf6228f..78988c7 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -158,7 +158,7 @@
 
         <LinearLayout
             android:layout_width="fill_parent"
-            android:layout_height="wrap_content"
+            android:layout_height="0dp"
             android:layout_marginTop="4dip"
             android:layout_weight="0"
             android:gravity="center"
diff --git a/vlc-android/res/layout/native_crash.xml b/vlc-android/res/layout/native_crash.xml
index 72d743d..4ced26c 100644
--- a/vlc-android/res/layout/native_crash.xml
+++ b/vlc-android/res/layout/native_crash.xml
@@ -22,7 +22,7 @@
 
     <ScrollView
         android:layout_width="fill_parent"
-        android:layout_height="wrap_content"
+        android:layout_height="0dp"
         android:layout_margin="10dp"
         android:layout_weight="1"
         android:scrollbars="vertical" >
diff --git a/vlc-android/res/layout/video_grid_card.xml b/vlc-android/res/layout/video_grid_card.xml
index 82879ef..2046d5a 100644
--- a/vlc-android/res/layout/video_grid_card.xml
+++ b/vlc-android/res/layout/video_grid_card.xml
@@ -87,7 +87,7 @@
 
                 <TextView
                     android:id="@+id/ml_item_title"
-                    android:layout_width="match_parent"
+                    android:layout_width="0dp"
                     android:layout_height="wrap_content"
                     android:layout_weight="1"
                     android:ellipsize="end"
diff --git a/vlc-android/res/layout/video_list_card.xml b/vlc-android/res/layout/video_list_card.xml
index 669646c..b0f0fdd 100644
--- a/vlc-android/res/layout/video_list_card.xml
+++ b/vlc-android/res/layout/video_list_card.xml
@@ -79,7 +79,7 @@
 
                     <TextView
                         android:id="@+id/ml_item_title"
-                        android:layout_width="wrap_content"
+                        android:layout_width="0dp"
                         android:layout_height="wrap_content"
                         android:layout_weight="1"
                         android:ellipsize="end"



More information about the Android mailing list