[Android] Simplify separator layout

Geoffrey Métais git at videolan.org
Tue Nov 8 11:00:22 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov  8 10:41:17 2016 +0100| [a35c4417b48cef5dd0abb50d248597a48cb67585] | committer: Geoffrey Métais

Simplify separator layout

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

 vlc-android/res/layout/audio_browser_separator.xml | 31 +++++++---------------
 1 file changed, 9 insertions(+), 22 deletions(-)

diff --git a/vlc-android/res/layout/audio_browser_separator.xml b/vlc-android/res/layout/audio_browser_separator.xml
index fa692d1..21e0362 100644
--- a/vlc-android/res/layout/audio_browser_separator.xml
+++ b/vlc-android/res/layout/audio_browser_separator.xml
@@ -3,28 +3,15 @@
     <data>
         <variable name="item" type="org.videolan.medialibrary.media.DummyItem"/>
     </data>
-    <LinearLayout
-        android:id="@+id/layout_item"
-        android:layout_width="fill_parent"
+    <TextView
+        android:id="@+id/title"
+        android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:orientation="vertical"
         android:layout_marginTop="15dip"
-        android:layout_marginBottom="10dip" >
-
-        <TextView
-            android:id="@+id/title"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="10dip"
-            android:singleLine="true"
-            android:text="@{item.title}"
-            android:textColor="?attr/audio_browser_separator"
-            android:textSize="20sp" />
-
-        <!--<View-->
-            <!--android:layout_width="fill_parent"-->
-            <!--android:layout_height="2dip"-->
-            <!--android:background="?attr/audio_browser_separator" />-->
-
-    </LinearLayout>
+        android:layout_marginBottom="10dip"
+        android:layout_marginLeft="10dip"
+        android:singleLine="true"
+        android:text="@{item.title}"
+        android:textColor="?attr/audio_browser_separator"
+        android:textSize="20sp" />
 </layout>



More information about the Android mailing list