[Android] add browser home icon

Alexandre Perraud git at videolan.org
Tue Jun 27 15:34:57 CEST 2017


vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Tue Jun 27 15:31:10 2017 +0200| [21b5c62b897c1185a03ed975d4654874578d41d0] | committer: Alexandre Perraud

add browser home icon

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

 assets/images/svg/ic_browser_home_normal.svg       |  68 +++++++++++++++++++++
 .../res/drawable-hdpi/ic_browser_home_normal.png   | Bin 0 -> 571 bytes
 .../res/drawable-ldpi/ic_browser_home_normal.png   | Bin 0 -> 401 bytes
 .../res/drawable-mdpi/ic_browser_home_normal.png   | Bin 0 -> 438 bytes
 .../res/drawable-xhdpi/ic_browser_home_normal.png  | Bin 0 -> 729 bytes
 vlc-android/res/layout/browser_item.xml            |   6 +-
 vlc-android/res/layout/file_picker_activity.xml    |   7 ++-
 7 files changed, 75 insertions(+), 6 deletions(-)

diff --git a/assets/images/svg/ic_browser_home_normal.svg b/assets/images/svg/ic_browser_home_normal.svg
new file mode 100644
index 000000000..72266da77
--- /dev/null
+++ b/assets/images/svg/ic_browser_home_normal.svg
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="24"
+   height="24"
+   id="svg4682"
+   version="1.1"
+   inkscape:version="0.92.1 r15371"
+   sodipodi:docname="ic_browser_home_normal.svg"
+   inkscape:export-filename="/home/corbax/Dev/android/Icons/Test 1/ic_play_normal.png"
+   inkscape:export-xdpi="90"
+   inkscape:export-ydpi="90">
+  <defs
+     id="defs4684" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="22.4"
+     inkscape:cx="17.687706"
+     inkscape:cy="10.970056"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:window-width="1920"
+     inkscape:window-height="1054"
+     inkscape:window-x="1920"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1">
+    <inkscape:grid
+       type="xygrid"
+       id="grid2983" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata4687">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-1028.3622)">
+    <path
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#757575;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;enable-background:accumulate"
+       d="m 5,1033.3622 c -1.108,0 -1.81785,0.9071 -2,2 v 1 9 c 0,1.108 0.892,2 2,2 h 14 c 1.108,0 2,-0.892 2,-2 v -8 c 0,-1.108 -0.892,-2 -2,-2 h -7 l -2,-2 z m 10,4 4.5,4 H 18 v 4 h -2 v -3 h -2 v 3 h -2 v -4 h -1.5 z"
+       id="path10885"
+       inkscape:connector-curvature="0" />
+  </g>
+</svg>
diff --git a/vlc-android/res/drawable-hdpi/ic_browser_home_normal.png b/vlc-android/res/drawable-hdpi/ic_browser_home_normal.png
new file mode 100644
index 000000000..db5674b14
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/ic_browser_home_normal.png differ
diff --git a/vlc-android/res/drawable-ldpi/ic_browser_home_normal.png b/vlc-android/res/drawable-ldpi/ic_browser_home_normal.png
new file mode 100644
index 000000000..de4147319
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/ic_browser_home_normal.png differ
diff --git a/vlc-android/res/drawable-mdpi/ic_browser_home_normal.png b/vlc-android/res/drawable-mdpi/ic_browser_home_normal.png
new file mode 100644
index 000000000..308bed9da
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/ic_browser_home_normal.png differ
diff --git a/vlc-android/res/drawable-xhdpi/ic_browser_home_normal.png b/vlc-android/res/drawable-xhdpi/ic_browser_home_normal.png
new file mode 100644
index 000000000..ee60bac06
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/ic_browser_home_normal.png differ
diff --git a/vlc-android/res/layout/browser_item.xml b/vlc-android/res/layout/browser_item.xml
index 349ed2ac0..89e80c6b4 100644
--- a/vlc-android/res/layout/browser_item.xml
+++ b/vlc-android/res/layout/browser_item.xml
@@ -28,7 +28,7 @@
     <android.support.constraint.ConstraintLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:minHeight="50dp"
+        android:minHeight="48dp"
         android:padding="2dp"
         android:focusable="true"
         android:clickable="@{holder != null}"
@@ -51,8 +51,8 @@
         <!-- Image downloading is handled by org.videolan.vlc.gui.helpers.AsyncImageLoader.downloadIcon() -->
         <TextView
             android:id="@+id/dvi_icon"
-            android:layout_width="50dp"
-            android:layout_height="50dp"
+            android:layout_width="48dp"
+            android:layout_height="48dp"
             android:background="@{cover}"
             android:contentDescription="@string/cover_art"
             android:gravity="center"
diff --git a/vlc-android/res/layout/file_picker_activity.xml b/vlc-android/res/layout/file_picker_activity.xml
index ca9549db5..f707618a2 100644
--- a/vlc-android/res/layout/file_picker_activity.xml
+++ b/vlc-android/res/layout/file_picker_activity.xml
@@ -8,12 +8,13 @@
         android:id="@+id/button_home"
         android:layout_width="48dp"
         android:layout_height="48dp"
-        android:layout_gravity="center_horizontal"
+        android:layout_gravity="start|center_horizontal"
         android:contentDescription="@string/directories"
+        android:layout_marginLeft="2dp"
         android:onClick="onHomeClick"
         tools:targetApi="11"
-        style="?android:attr/borderlessButtonStyle"
-        android:src="@drawable/icon"/>
+        android:src="@drawable/ic_browser_home_normal"
+        android:scaleType="fitCenter" />
     <FrameLayout
         android:id="@+id/fragment_placeholder"
         android:layout_width="match_parent"



More information about the Android mailing list