[Android] TV : Add a large no artwork icon

Alexandre Perraud git at videolan.org
Fri Nov 10 11:06:49 CET 2017


vlc-android | branch: 2.5.x | Alexandre Perraud <4leyx4ndre at gmail.com> | Fri Nov 10 10:00:26 2017 +0100| [6f46b824ff8136ca0f0ebc7161350032bd2c1063] | committer: Geoffrey Métais

TV : Add a large no artwork icon

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

 assets/images/svg/ic_no_artwork_big.svg            |  68 +++++++++++++++++++++
 .../res/drawable-hdpi/ic_no_artwork_big.png        | Bin 0 -> 2439 bytes
 .../res/drawable-ldpi/ic_no_artwork_big.png        | Bin 0 -> 1309 bytes
 .../res/drawable-mdpi/ic_no_artwork_big.png        | Bin 0 -> 1768 bytes
 .../res/drawable-xhdpi/ic_no_artwork_big.png       | Bin 0 -> 3306 bytes
 vlc-android/res/layout/tv_audio_player.xml         |   2 +-
 .../gui/tv/audioplayer/AudioPlayerActivity.java    |   2 +-
 7 files changed, 70 insertions(+), 2 deletions(-)

diff --git a/assets/images/svg/ic_no_artwork_big.svg b/assets/images/svg/ic_no_artwork_big.svg
new file mode 100644
index 000000000..5705f4ca5
--- /dev/null
+++ b/assets/images/svg/ic_no_artwork_big.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="168"
+   height="168"
+   id="svg4682"
+   version="1.1"
+   inkscape:version="0.92.1 r15371"
+   sodipodi:docname="ic_no_song_big.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="1.4"
+     inkscape:cx="-182.41623"
+     inkscape:cy="-43.701079"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:window-width="1920"
+     inkscape:window-height="1029"
+     inkscape:window-x="0"
+     inkscape:window-y="27"
+     inkscape:window-maximized="1">
+    <inkscape:grid
+       type="xygrid"
+       id="grid816" />
+  </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,-884.3622)">
+    <path
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#757575;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.5;marker:none;enable-background:accumulate"
+       d="m 132,896.3622 -71.000604,28.5004 c -5.307488,2.6036 -9.000076,7.9388 -9.000076,14.2504 v 21.25 40.2508 c -1.301928,-0.26 -2.619292,-0.252 -4.000032,-0.252 -11.045768,0 -20.000164,8.954 -20.000164,20 0,11.0464 8.954396,20.0004 20.000164,20.0004 11.045772,0 20.000168,-8.954 20.000168,-20.0004 V 953.861 l 48.000404,-18.9996 v 49.75 c -1.30193,-0.26 -2.6193,-0.244 -4.00003,-0.244 -11.04578,0 -20.000164,8.954 -20.000164,19.9996 0,11.046 8.954394,20 20.000164,20 11.04576,0 20.00016,-8.954 20.00016,-20 v -76.0008 -32.0004 z"
+       id="path6883"
+       inkscape:connector-curvature="0" />
+  </g>
+</svg>
diff --git a/vlc-android/res/drawable-hdpi/ic_no_artwork_big.png b/vlc-android/res/drawable-hdpi/ic_no_artwork_big.png
new file mode 100644
index 000000000..5db0644bd
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/ic_no_artwork_big.png differ
diff --git a/vlc-android/res/drawable-ldpi/ic_no_artwork_big.png b/vlc-android/res/drawable-ldpi/ic_no_artwork_big.png
new file mode 100644
index 000000000..1ec0cd5b8
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/ic_no_artwork_big.png differ
diff --git a/vlc-android/res/drawable-mdpi/ic_no_artwork_big.png b/vlc-android/res/drawable-mdpi/ic_no_artwork_big.png
new file mode 100644
index 000000000..02e9d762b
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/ic_no_artwork_big.png differ
diff --git a/vlc-android/res/drawable-xhdpi/ic_no_artwork_big.png b/vlc-android/res/drawable-xhdpi/ic_no_artwork_big.png
new file mode 100644
index 000000000..2fb3c2e5f
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/ic_no_artwork_big.png differ
diff --git a/vlc-android/res/layout/tv_audio_player.xml b/vlc-android/res/layout/tv_audio_player.xml
index 7acd5619e..10332e318 100644
--- a/vlc-android/res/layout/tv_audio_player.xml
+++ b/vlc-android/res/layout/tv_audio_player.xml
@@ -32,7 +32,7 @@
             app:layout_constraintVertical_chainStyle="spread"
             app:layout_constraintHorizontal_chainStyle="spread"
             android:scaleType="fitCenter"
-            android:src="@drawable/ic_song_big" />
+            android:src="@drawable/ic_no_artwork_big" />
 
         <TextView
             android:id="@+id/media_title"
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
index fd587ca63..5fce6ac5b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
@@ -165,7 +165,7 @@ public class AudioPlayerActivity extends BaseTvActivity implements PlaybackServi
                     @Override
                     public void run() {
                         if (cover == null) {
-                            mBinding.albumCover.setImageResource(R.drawable.ic_song_big);
+                            mBinding.albumCover.setImageResource(R.drawable.ic_no_artwork_big);
                             mBinding.background.clearColorFilter();
                             mBinding.background.setImageResource(0);
                         } else {



More information about the Android mailing list