diff options
author | mvglasow <michael -at- vonglasow.com> | 2015-11-09 21:50:38 +0100 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2016-02-02 09:58:31 +0100 |
commit | 402a55ba4041087017611bc03e4ee21cb5e78ff7 (patch) | |
tree | 48af7f3219c5cbf834f06c8b55db3480261a10da | |
parent | 2aa0177017e346ca1e2b96a8c191bb57078c99a2 (diff) | |
download | navit-402a55ba4041087017611bc03e4ee21cb5e78ff7.tar.gz |
Add:port_android:Notification icon which complies with Android style guide for all densities
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r-- | navit/android/res/drawable-hdpi/ic_notify.png | bin | 0 -> 634 bytes | |||
-rw-r--r-- | navit/android/res/drawable-hdpi/icon.png | bin | 6054 -> 5949 bytes | |||
-rw-r--r-- | navit/android/res/drawable-ldpi/ic_notify.png | bin | 0 -> 370 bytes | |||
-rw-r--r-- | navit/android/res/drawable-ldpi/icon.png | bin | 1966 -> 2208 bytes | |||
-rw-r--r-- | navit/android/res/drawable-mdpi/ic_notify.png | bin | 0 -> 462 bytes | |||
-rw-r--r-- | navit/android/res/drawable-mdpi/icon.png | bin | 3595 -> 3353 bytes | |||
-rw-r--r-- | navit/android/res/drawable-xhdpi/ic_notify.png | bin | 0 -> 832 bytes | |||
-rw-r--r-- | navit/android/res/drawable-xhdpi/icon.png | bin | 0 -> 8858 bytes | |||
-rw-r--r-- | navit/android/res/drawable-xxhdpi/ic_notify.png | bin | 0 -> 1216 bytes | |||
-rw-r--r-- | navit/android/res/drawable-xxhdpi/icon.png | bin | 0 -> 15235 bytes | |||
-rw-r--r-- | navit/android/src/org/navitproject/navit/Navit.java | 2 | ||||
-rw-r--r-- | navit/xpm/ic_notify.svg | 261 |
12 files changed, 262 insertions, 1 deletions
diff --git a/navit/android/res/drawable-hdpi/ic_notify.png b/navit/android/res/drawable-hdpi/ic_notify.png Binary files differnew file mode 100644 index 000000000..7516b2fbd --- /dev/null +++ b/navit/android/res/drawable-hdpi/ic_notify.png diff --git a/navit/android/res/drawable-hdpi/icon.png b/navit/android/res/drawable-hdpi/icon.png Binary files differindex 3b01b5c3d..311c57b59 100644 --- a/navit/android/res/drawable-hdpi/icon.png +++ b/navit/android/res/drawable-hdpi/icon.png diff --git a/navit/android/res/drawable-ldpi/ic_notify.png b/navit/android/res/drawable-ldpi/ic_notify.png Binary files differnew file mode 100644 index 000000000..010d55fb3 --- /dev/null +++ b/navit/android/res/drawable-ldpi/ic_notify.png diff --git a/navit/android/res/drawable-ldpi/icon.png b/navit/android/res/drawable-ldpi/icon.png Binary files differindex b72d1e40b..da2553687 100644 --- a/navit/android/res/drawable-ldpi/icon.png +++ b/navit/android/res/drawable-ldpi/icon.png diff --git a/navit/android/res/drawable-mdpi/ic_notify.png b/navit/android/res/drawable-mdpi/ic_notify.png Binary files differnew file mode 100644 index 000000000..d6de8d53f --- /dev/null +++ b/navit/android/res/drawable-mdpi/ic_notify.png diff --git a/navit/android/res/drawable-mdpi/icon.png b/navit/android/res/drawable-mdpi/icon.png Binary files differindex 33bbab7f6..f8f68e8bc 100644 --- a/navit/android/res/drawable-mdpi/icon.png +++ b/navit/android/res/drawable-mdpi/icon.png diff --git a/navit/android/res/drawable-xhdpi/ic_notify.png b/navit/android/res/drawable-xhdpi/ic_notify.png Binary files differnew file mode 100644 index 000000000..72371c974 --- /dev/null +++ b/navit/android/res/drawable-xhdpi/ic_notify.png diff --git a/navit/android/res/drawable-xhdpi/icon.png b/navit/android/res/drawable-xhdpi/icon.png Binary files differnew file mode 100644 index 000000000..649fb32d4 --- /dev/null +++ b/navit/android/res/drawable-xhdpi/icon.png diff --git a/navit/android/res/drawable-xxhdpi/ic_notify.png b/navit/android/res/drawable-xxhdpi/ic_notify.png Binary files differnew file mode 100644 index 000000000..d47a41154 --- /dev/null +++ b/navit/android/res/drawable-xxhdpi/ic_notify.png diff --git a/navit/android/res/drawable-xxhdpi/icon.png b/navit/android/res/drawable-xxhdpi/icon.png Binary files differnew file mode 100644 index 000000000..398945c23 --- /dev/null +++ b/navit/android/res/drawable-xxhdpi/icon.png diff --git a/navit/android/src/org/navitproject/navit/Navit.java b/navit/android/src/org/navitproject/navit/Navit.java index a117ccd6d..19637c97b 100644 --- a/navit/android/src/org/navitproject/navit/Navit.java +++ b/navit/android/src/org/navitproject/navit/Navit.java @@ -267,7 +267,7 @@ public class Navit extends Activity // Setup the status bar notification
// This notification is removed in the exit() function
NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); // Grab a handle to the NotificationManager
- Notification NavitNotification = new Notification(R.drawable.icon, getString(R.string.notification_ticker), System.currentTimeMillis()); // Create a new notification, with the text string to show when the notification first appears
+ Notification NavitNotification = new Notification(R.drawable.ic_notify, getString(R.string.notification_ticker), System.currentTimeMillis()); // Create a new notification, with the text string to show when the notification first appears
PendingIntent appIntent = PendingIntent.getActivity(getApplicationContext(), 0, getIntent(), 0);
NavitNotification.setLatestEventInfo(getApplicationContext(), "Navit", getString(R.string.notification_event_default), appIntent); // Set the text in the notification
NavitNotification.flags|=Notification.FLAG_ONGOING_EVENT; // Ensure that the notification appears in Ongoing
diff --git a/navit/xpm/ic_notify.svg b/navit/xpm/ic_notify.svg new file mode 100644 index 000000000..8bf846dae --- /dev/null +++ b/navit/xpm/ic_notify.svg @@ -0,0 +1,261 @@ +<?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:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="22" + height="22" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.91 r13725" + version="1.0" + sodipodi:docname="ic_notify.svg" + inkscape:output_extension="org.inkscape.output.svg.inkscape" + inkscape:export-filename="/home/michael/src/navit/navit/android/res/drawable-hdpi/ic_notify.png" + inkscape:export-xdpi="147.27" + inkscape:export-ydpi="147.27"> + <defs + id="defs4"> + <linearGradient + id="linearGradient3365"> + <stop + style="stop-color:#ffffff;stop-opacity:0.61904764;" + offset="0" + id="stop3367" /> + <stop + style="stop-color:#ffffff;stop-opacity:0;" + offset="1" + id="stop3369" /> + </linearGradient> + <linearGradient + id="linearGradient3320"> + <stop + style="stop-color:#116cbf;stop-opacity:1;" + offset="0" + id="stop3322" /> + <stop + id="stop3354" + offset="0.08" + style="stop-color:#116cbf;stop-opacity:1;" /> + <stop + id="stop3352" + offset="0.4893617" + style="stop-color:#1a6cb6;stop-opacity:1;" /> + <stop + style="stop-color:#329eff;stop-opacity:1;" + offset="1" + id="stop3324" /> + </linearGradient> + <linearGradient + id="linearGradient3308"> + <stop + style="stop-color:#062643;stop-opacity:1;" + offset="0" + id="stop3310" /> + <stop + style="stop-color:#0d5799;stop-opacity:1;" + offset="1" + id="stop3312" /> + </linearGradient> + <linearGradient + id="linearGradient3235"> + <stop + style="stop-color:#c17d11;stop-opacity:1;" + offset="0" + id="stop3237" /> + <stop + style="stop-color:#e9cb14;stop-opacity:1;" + offset="1" + id="stop3239" /> + </linearGradient> + <linearGradient + id="linearGradient3227"> + <stop + style="stop-color:#76650c;stop-opacity:1;" + offset="0" + id="stop3229" /> + <stop + style="stop-color:#76650c;stop-opacity:0;" + offset="1" + id="stop3231" /> + </linearGradient> + <inkscape:perspective + sodipodi:type="inkscape:persp3d" + inkscape:vp_x="15.556349 : 133.02972 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_z="744.09448 : 526.18109 : 1" + inkscape:persp3d-origin="372.04724 : 350.78739 : 1" + id="perspective10" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3308" + id="linearGradient3314" + x1="-7.7781754" + y1="4.2563133" + x2="43.133514" + y2="4.2563133" + gradientUnits="userSpaceOnUse" /> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="33.636364" + inkscape:cx="10.429299" + inkscape:cy="11" + inkscape:document-units="px" + inkscape:current-layer="layer2" + showgrid="false" + inkscape:window-width="1280" + inkscape:window-height="948" + inkscape:window-x="0" + inkscape:window-y="24" + showborder="true" + inkscape:window-maximized="1" + inkscape:object-paths="true" + inkscape:snap-bbox="false" + inkscape:snap-bbox-edge-midpoints="true" + inkscape:object-nodes="true" + showguides="false" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Calque 1" + inkscape:groupmode="layer" + id="layer1" + style="display:inline" /> + <g + inkscape:groupmode="layer" + id="layer2" + inkscape:label="lignes" + style="display:inline"> + <path + style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.79098374;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" + d="m 3.1845705,2.9140622 c -1.0886716,0 -1.9765625,0.8878909 -1.9765625,1.9765625 l 0,5.6269533 C 2.9051239,9.2613772 5.0602154,8.3513287 7.0419924,8.0273435 l -2.625,-0.9511719 0.056641,-0.4589844 c 2.9757823,-0.3155887 5.8357996,0.1963758 8.5898436,1.375 l 0.216797,0.091797 -2.070313,4.9648438 -0.955078,-2.207031 c -2.0698525,1.111236 -3.5135663,3.176209 -4.333984,6.246094 l -0.089844,0.333984 -4.6230469,-3.347656 0,3.035156 c 0,1.088672 0.8878909,1.976563 1.9765625,1.976563 l 15.6289064,0 c 1.088671,0 1.978515,-0.887891 1.978515,-1.976563 l 0,-12.2187502 c 0,-1.0886716 -0.889844,-1.9765625 -1.978515,-1.9765625 l -15.6289064,0 z" + id="path4971" + inkscape:connector-curvature="0" /> + </g> + <g + inkscape:groupmode="layer" + id="layer4" + inkscape:label="bulle" + style="display:none"> + <path + sodipodi:type="arc" + style="fill:url(#linearGradient3314);fill-opacity:1;stroke:#1f3157;stroke-width:5.30526352;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" + id="path3305" + sodipodi:cx="17.67767" + sodipodi:cy="4.2563133" + sodipodi:rx="25.455845" + sodipodi:ry="25.455845" + d="m 43.133514,4.2563133 a 25.455845,25.455845 0 1 1 -50.9116894,0 25.455845,25.455845 0 1 1 50.9116894,0 z" + transform="matrix(1.3194444,0,0,1.3194444,18.394598,29.399489)" /> + </g> + <g + inkscape:groupmode="layer" + id="layer3" + inkscape:label="rose des vents" + style="display:none"> + <g + id="g3256" + transform="matrix(0.7071068,0.7071068,-0.7071068,0.7071068,36.903806,-19.093669)" + style="opacity:0.5"> + <path + transform="translate(67.5,7)" + d="m -25.999999,61.185085 -5.673657,-27.511429 -27.511429,-5.673655 27.511429,-5.673657 5.673655,-27.5114293 5.673657,27.5114293 27.5114293,5.673655 -27.5114293,5.673657 z" + inkscape:randomized="0" + inkscape:rounded="0" + inkscape:flatsided="false" + sodipodi:arg2="2.3561945" + sodipodi:arg1="1.5707963" + sodipodi:r2="8.0237608" + sodipodi:r1="33.185085" + sodipodi:cy="28" + sodipodi:cx="-26" + sodipodi:sides="4" + id="path3258" + style="fill:#167bd9;fill-opacity:1;stroke:none" + sodipodi:type="star" /> + <path + transform="translate(67.5,7)" + d="m -25.999999,61.185085 6.826343,-33.011429 -40.011429,-0.173655 33.011429,6.826343 0.173655,-40.0114293 -6.826343,33.0114293 40.0114293,0.173655 -33.0114293,-6.826343 z" + inkscape:randomized="0" + inkscape:rounded="0" + inkscape:flatsided="false" + sodipodi:arg2="0.025433549" + sodipodi:arg1="1.5707963" + sodipodi:r2="6.8285527" + sodipodi:r1="33.185085" + sodipodi:cy="28" + sodipodi:cx="-26" + sodipodi:sides="4" + id="path3260" + style="fill:#c3dff9;fill-opacity:1;stroke:none" + sodipodi:type="star" /> + </g> + <g + id="g3252"> + <path + transform="translate(67.5,7)" + d="m -25.999999,61.185085 -5.673657,-27.511429 -27.511429,-5.673655 27.511429,-5.673657 5.673655,-27.5114293 5.673657,27.5114293 27.5114293,5.673655 -27.5114293,5.673657 z" + inkscape:randomized="0" + inkscape:rounded="0" + inkscape:flatsided="false" + sodipodi:arg2="2.3561945" + sodipodi:arg1="1.5707963" + sodipodi:r2="8.0237608" + sodipodi:r1="33.185085" + sodipodi:cy="28" + sodipodi:cx="-26" + sodipodi:sides="4" + id="path3248" + style="fill:#167bd9;fill-opacity:1;stroke:none" + sodipodi:type="star" /> + <path + transform="translate(67.5,7)" + d="m -25.999999,61.185085 6.826343,-33.011429 -40.011429,-0.173655 33.011429,6.826343 0.173655,-40.0114293 -6.826343,33.0114293 40.0114293,0.173655 -33.0114293,-6.826343 z" + inkscape:randomized="0" + inkscape:rounded="0" + inkscape:flatsided="false" + sodipodi:arg2="0.025433549" + sodipodi:arg1="1.5707963" + sodipodi:r2="6.8285527" + sodipodi:r1="33.185085" + sodipodi:cy="28" + sodipodi:cx="-26" + sodipodi:sides="4" + id="path3250" + style="fill:#c3dff9;fill-opacity:1;stroke:none" + sodipodi:type="star" /> + </g> + </g> + <g + inkscape:groupmode="layer" + id="layer6" + inkscape:label="ondes" + style="display:inline" /> + <g + inkscape:groupmode="layer" + id="layer5" + inkscape:label="flèche" + style="display:inline" /> +</svg> |