[Android] Lighter items for playback history display

Geoffrey Métais git at videolan.org
Fri Jan 8 13:33:29 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jan  8 13:32:35 2016 +0100| [4b990860132919566943c6b138dc39c6fc079535] | committer: Geoffrey Métais

Lighter items for playback history display

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

 vlc-android/res/layout/history_list.xml | 4 ++--
 vlc-android/res/layout/list_item.xml    | 7 +++----
 vlc-android/res/values/dimens.xml       | 2 +-
 3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/vlc-android/res/layout/history_list.xml b/vlc-android/res/layout/history_list.xml
index b559b5e..cb83d8f 100644
--- a/vlc-android/res/layout/history_list.xml
+++ b/vlc-android/res/layout/history_list.xml
@@ -17,8 +17,8 @@
                 android:clipToPadding="false"
                 android:paddingTop="10dp"
                 android:paddingBottom="@dimen/listview_bottom_padding"
-                android:paddingLeft="20dp"
-                android:paddingRight="20dp" />
+                android:paddingLeft="@dimen/listview_side_padding"
+                android:paddingRight="@dimen/listview_side_padding" />
 
             <TextView
                 android:id="@+id/android:empty"
diff --git a/vlc-android/res/layout/list_item.xml b/vlc-android/res/layout/list_item.xml
index b2182bf..6368aab 100644
--- a/vlc-android/res/layout/list_item.xml
+++ b/vlc-android/res/layout/list_item.xml
@@ -24,8 +24,8 @@
 
         <ImageView
             android:id="@+id/icon"
-            android:layout_width="50dp"
-            android:layout_height="50dp"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
             android:src="@{media.type == MediaWrapper.TYPE_VIDEO ? @drawable/ic_browser_video_normal : @drawable/ic_browser_audio_normal}" />
 
         <LinearLayout
@@ -43,7 +43,7 @@
                 android:text="@{media.title}"
                 android:fontFamily="sans-serif-light"
                 android:textColor="?attr/list_title"
-                android:textSize="20sp"
+                android:textSize="16sp"
                 android:singleLine="true"
                 android:scrollHorizontally="true"/>
 
@@ -57,7 +57,6 @@
                 android:text="@{media.artist}"
                 android:fontFamily="sans-serif-light"
                 android:textColor="?attr/list_subtitle"
-                android:textSize="14sp"
                 android:singleLine="true"
                 android:ellipsize="start"
                 android:visibility="@{media.artist == null ? View.GONE : View.VISIBLE}"/>
diff --git a/vlc-android/res/values/dimens.xml b/vlc-android/res/values/dimens.xml
index 45d1fc8..20a6547 100644
--- a/vlc-android/res/values/dimens.xml
+++ b/vlc-android/res/values/dimens.xml
@@ -3,7 +3,7 @@
     <dimen name="widget_margin">10dp</dimen>
     <dimen name="audio_browser_item_size">50dp</dimen>
     <dimen name="directory_browser_item_size">40dp</dimen>
-    <dimen name="listview_bottom_padding">50dp</dimen>
+    <dimen name="listview_bottom_padding">10dp</dimen>
     <dimen name="listview_side_padding">5dp</dimen>
     <dimen name="grid_card_width">160dp</dimen>
     <dimen name="grid_card_height">160dp</dimen>



More information about the Android mailing list