[Android] UI : Set sans-serif-light font for some views

Alexandre Perraud git at videolan.org
Fri Mar 13 11:39:21 CET 2015


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Fri Mar 13 11:35:46 2015 +0100| [dc8ee31af1c3b66216410e9ee63e1f9b6f7c1c89] | committer: Alexandre Perraud

UI : Set sans-serif-light font for some views

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

 vlc-android/res/layout/audio_browser_item.xml  |    2 ++
 vlc-android/res/layout/audio_playlist_item.xml |    2 ++
 vlc-android/res/layout/directory_view_item.xml |    4 +++-
 vlc-android/res/layout/list_item.xml           |    2 ++
 vlc-android/res/layout/mrl_item.xml            |    1 +
 vlc-android/res/layout/video_grid_card.xml     |    3 +++
 vlc-android/res/layout/video_list_card.xml     |    3 +++
 7 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/layout/audio_browser_item.xml b/vlc-android/res/layout/audio_browser_item.xml
index 03c7aeb..ad854fe 100644
--- a/vlc-android/res/layout/audio_browser_item.xml
+++ b/vlc-android/res/layout/audio_browser_item.xml
@@ -34,6 +34,7 @@
                 android:ellipsize="middle"
                 android:maxLines="1"
                 android:text="@string/title"
+                android:fontFamily="sans-serif-light"
                 android:textColor="?attr/list_title"
                 android:textSize="16sp" />
 
@@ -45,6 +46,7 @@
                 android:ellipsize="middle"
                 android:maxLines="1"
                 android:text="@string/artist"
+                android:fontFamily="sans-serif-light"
                 android:textColor="?attr/list_subtitle" />
         </LinearLayout>
 
diff --git a/vlc-android/res/layout/audio_playlist_item.xml b/vlc-android/res/layout/audio_playlist_item.xml
index ce954cf..55f9123 100644
--- a/vlc-android/res/layout/audio_playlist_item.xml
+++ b/vlc-android/res/layout/audio_playlist_item.xml
@@ -66,6 +66,7 @@
                         android:ellipsize="middle"
                         android:text="@string/title"
                         android:textColor="?attr/list_title"
+                        android:fontFamily="sans-serif-light"
                         android:textSize="16sp" />
 
                     <TextView
@@ -79,6 +80,7 @@
                         android:ellipsize="middle"
                         android:text="@string/artist"
                         android:textColor="?attr/list_subtitle"
+                        android:fontFamily="sans-serif-light"
                         android:textSize="12sp" />
                 </LinearLayout>
 
diff --git a/vlc-android/res/layout/directory_view_item.xml b/vlc-android/res/layout/directory_view_item.xml
index 359c5ae..fa8db6d 100644
--- a/vlc-android/res/layout/directory_view_item.xml
+++ b/vlc-android/res/layout/directory_view_item.xml
@@ -10,7 +10,7 @@
         android:layout_width="@dimen/directory_browser_item_size"
         android:layout_height="@dimen/directory_browser_item_size"
         android:layout_gravity="center"
-		android:layout_marginLeft="15dp"
+        android:layout_marginLeft="15dp"
         android:contentDescription="@string/cover_art"
         android:src="@drawable/icon" />
 
@@ -33,6 +33,7 @@
             android:marqueeRepeatLimit="marquee_forever"
             android:singleLine="true"
             android:text="@string/title"
+            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_title"
             android:textSize="16sp" />
 
@@ -42,6 +43,7 @@
             android:layout_height="wrap_content"
             android:ellipsize="marquee"
             android:maxLines="1"
+            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_subtitle"/>
     </LinearLayout>
 
diff --git a/vlc-android/res/layout/list_item.xml b/vlc-android/res/layout/list_item.xml
index a8df3b3..c144b25 100644
--- a/vlc-android/res/layout/list_item.xml
+++ b/vlc-android/res/layout/list_item.xml
@@ -25,6 +25,7 @@
             android:layout_marginRight="5dip"
             android:layout_marginTop="5dip"
             android:text="@string/title"
+            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_title"
             android:textSize="20sp" />
 
@@ -36,6 +37,7 @@
             android:layout_marginLeft="5dip"
             android:layout_marginRight="5dip"
             android:text="@string/artist"
+            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_subtitle"
             android:textSize="14sp" />
     </LinearLayout>
diff --git a/vlc-android/res/layout/mrl_item.xml b/vlc-android/res/layout/mrl_item.xml
index 392a5ff..629b427 100644
--- a/vlc-android/res/layout/mrl_item.xml
+++ b/vlc-android/res/layout/mrl_item.xml
@@ -20,6 +20,7 @@
             android:gravity="center_vertical"
             android:paddingLeft="10dp"
             android:singleLine="true"
+            android:fontFamily="sans-serif-light"
             android:textColor="?attr/font_default" />
         <ImageView
             android:id="@+id/mrl_item_delete"
diff --git a/vlc-android/res/layout/video_grid_card.xml b/vlc-android/res/layout/video_grid_card.xml
index 981fb30..758616b 100644
--- a/vlc-android/res/layout/video_grid_card.xml
+++ b/vlc-android/res/layout/video_grid_card.xml
@@ -26,6 +26,7 @@
         <TextView
             android:id="@+id/ml_item_title"
             android:textSize="@dimen/grid_card_title_text_size"
+            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_title"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
@@ -61,6 +62,7 @@
             android:layout_marginLeft="5dp"
             android:singleLine="true"
             android:textSize="@dimen/grid_card_subtitle_text_size"
+            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_subtitle" />
 
         <TextView
@@ -73,6 +75,7 @@
             android:layout_marginRight="5dp"
             android:singleLine="true"
             android:textSize="@dimen/grid_card_subtitle_text_size"
+            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_subtitle" />
 
         <ProgressBar
diff --git a/vlc-android/res/layout/video_list_card.xml b/vlc-android/res/layout/video_list_card.xml
index c733411..7e718b3 100644
--- a/vlc-android/res/layout/video_list_card.xml
+++ b/vlc-android/res/layout/video_list_card.xml
@@ -34,6 +34,7 @@
             android:ellipsize="end"
             android:maxLines="2"
             android:paddingLeft="12dip"
+            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_title"
             android:textSize="17sp" />
 
@@ -57,6 +58,7 @@
             android:layout_above="@id/ml_item_progress"
             android:gravity="left"
             android:paddingLeft="12dip"
+            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_subtitle"
             android:textSize="14sp" />
         <TextView
@@ -66,6 +68,7 @@
             android:layout_above="@id/ml_item_progress"
             android:layout_alignParentRight="true"
             android:layout_marginRight="10dp"
+            android:fontFamily="sans-serif-light"
             android:textColor="?attr/list_subtitle"
             android:textSize="14sp" />
 



More information about the Android mailing list