[Android] TV : add correct Now Playing button
Alexandre Perraud
git at videolan.org
Tue Dec 22 10:44:06 CET 2015
vlc-android | branch: 1.7.x | Alexandre Perraud <4leyx4ndre at gmail.com> | Mon Nov 30 17:24:39 2015 +0100| [1c85586d0307146785b515ac2b0978970618c00b] | committer: Geoffrey Métais
TV : add correct Now Playing button
(cherry picked from commit 2876fba72a46b715e0294478d255777c30a399b4)
Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>
> https://code.videolan.org/videolan/vlc-android/commit/1c85586d0307146785b515ac2b0978970618c00b
---
assets/images/svg/ic_nowplaying_big.svg | 68 +++++++++++++++++++++
.../tv/res/drawable-hdpi/ic_nowplaying_big.png | Bin 0 -> 1851 bytes
.../tv/res/drawable-ldpi/ic_nowplaying_big.png | Bin 0 -> 810 bytes
.../tv/res/drawable-mdpi/ic_nowplaying_big.png | Bin 0 -> 1224 bytes
.../tv/res/drawable-xhdpi/ic_nowplaying_big.png | Bin 0 -> 2520 bytes
.../org/videolan/vlc/gui/tv/MainTvActivity.java | 2 +-
6 files changed, 69 insertions(+), 1 deletion(-)
diff --git a/assets/images/svg/ic_nowplaying_big.svg b/assets/images/svg/ic_nowplaying_big.svg
new file mode 100644
index 0000000..f36769f
--- /dev/null
+++ b/assets/images/svg/ic_nowplaying_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="48"
+ height="48"
+ id="svg4682"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="ic_nowplaying_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="15.839192"
+ inkscape:cx="10.986025"
+ inkscape:cy="22.035322"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ inkscape:window-width="1920"
+ inkscape:window-height="1056"
+ inkscape:window-x="0"
+ inkscape:window-y="24"
+ inkscape:window-maximized="1">
+ <inkscape:grid
+ type="xygrid"
+ id="grid4134" />
+ </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></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-1004.3622)">
+ <path
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#777777;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.1;marker:none;enable-background:accumulate"
+ d="m 24,1010.3622 a 18,18 0 0 0 -18,18 18,18 0 0 0 18,18 18,18 0 0 0 18,-18 18,18 0 0 0 -18,-18 z m -5,9 15.000002,9 -15.000002,9 0,-18 z"
+ id="circle7062"
+ inkscape:connector-curvature="0" />
+ </g>
+</svg>
diff --git a/vlc-android/flavors/tv/res/drawable-hdpi/ic_nowplaying_big.png b/vlc-android/flavors/tv/res/drawable-hdpi/ic_nowplaying_big.png
new file mode 100644
index 0000000..6b108e0
Binary files /dev/null and b/vlc-android/flavors/tv/res/drawable-hdpi/ic_nowplaying_big.png differ
diff --git a/vlc-android/flavors/tv/res/drawable-ldpi/ic_nowplaying_big.png b/vlc-android/flavors/tv/res/drawable-ldpi/ic_nowplaying_big.png
new file mode 100644
index 0000000..bb405c0
Binary files /dev/null and b/vlc-android/flavors/tv/res/drawable-ldpi/ic_nowplaying_big.png differ
diff --git a/vlc-android/flavors/tv/res/drawable-mdpi/ic_nowplaying_big.png b/vlc-android/flavors/tv/res/drawable-mdpi/ic_nowplaying_big.png
new file mode 100644
index 0000000..2321ba7
Binary files /dev/null and b/vlc-android/flavors/tv/res/drawable-mdpi/ic_nowplaying_big.png differ
diff --git a/vlc-android/flavors/tv/res/drawable-xhdpi/ic_nowplaying_big.png b/vlc-android/flavors/tv/res/drawable-xhdpi/ic_nowplaying_big.png
new file mode 100644
index 0000000..3156013
Binary files /dev/null and b/vlc-android/flavors/tv/res/drawable-xhdpi/ic_nowplaying_big.png differ
diff --git a/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java b/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
index b034fb9..056b3cc 100644
--- a/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -357,7 +357,7 @@ public class MainTvActivity extends BaseTvActivity implements IVideoBrowser, OnI
mCategoriesAdapter = new ArrayObjectAdapter(new CardPresenter(mContext));
final HeaderItem musicHeader = new HeaderItem(HEADER_CATEGORIES, getString(R.string.audio));
if (mService != null && mService.hasMedia() && !mService.canSwitchToVideo())
- mCategoriesAdapter.add(new CardPresenter.SimpleCard(MusicFragment.CATEGORY_NOW_PLAYING, getString(R.string.music_now_playing), R.drawable.ic_play_circle_big_o));
+ mCategoriesAdapter.add(new CardPresenter.SimpleCard(MusicFragment.CATEGORY_NOW_PLAYING, getString(R.string.music_now_playing), R.drawable.ic_nowplaying_big));
mCategoriesAdapter.add(new CardPresenter.SimpleCard(MusicFragment.CATEGORY_ARTISTS, getString(R.string.artists), R.drawable.ic_artist_big));
mCategoriesAdapter.add(new CardPresenter.SimpleCard(MusicFragment.CATEGORY_ALBUMS, getString(R.string.albums), R.drawable.ic_album_big));
mCategoriesAdapter.add(new CardPresenter.SimpleCard(MusicFragment.CATEGORY_GENRES, getString(R.string.genres), R.drawable.ic_genre_big));
More information about the Android
mailing list