kailee23191 / weather-notification-android

Automatically exported from code.google.com/p/weather-notification-android
0 stars 0 forks source link

Notification icon size #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
= Problem =

The temperature text is long. Especially in Fahrenheit. For example: "+123°" 
(it's hot, but it's possible).
Before Android 2.3 the notification icon is limited to 25px width. The text 
size is small when scaling to 25px width.
Starting with Android 2.3 the notification icon can be variable width: 
http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_ba
r.html (verification required). There is no problem here.

= Solutions =

== 25px icons ==

Draw icons for each temperature value. Icon size is 25x25.
All icons has the same font size.

=== Advantages ===

 * Universal solution.

=== Disadvantages ===

 * The resulting font size is small.
 * Large .apk file (about 400 icons, in two skins).
 * For Android 2.3 is better solution.

== Variable width icons ==

Draw icons 25px height, but with variable witdh.

=== Advantages ===

 * The resulting font size is good.

=== Disadvantages ===

 * Correctly works with Android >2.3. Previous Android versions downscale the image to 25px width.
 * Large .apk file (about 400 icons, in two skins).

== Multiple icons ==

Display multiple notifications: each icon represents one digit in the 
temperature value.

=== Advantages ===

 * The resulting font size is the best (laaarge).
 * Small .apk size (only about 20 icons, can prepare icons for multiple resolutions).
 * Possible to display full forecasts in multiple notifications.

=== Disadvantages ===

 * Need to be carefully checked, multiple notifications can interfere with others.
 * Hack is required to hide notification text.
 * Mess in status bar during update (What to show in ticker text?)

= Other =

How to make multiple builds: for Android 2.3 and previous Android versions?

TODO: attach screenshots.

Original issue reported on code.google.com by DNelubin on 17 Jan 2011 at 9:18

GoogleCodeExporter commented 9 years ago
Variable width icons failed. Android 2.3 scales the image to 23px width too :(

Original comment by DNelubin on 17 Jan 2011 at 6:34

Attachments:

GoogleCodeExporter commented 9 years ago
Fix: 25px

Original comment by DNelubin on 17 Jan 2011 at 6:37

GoogleCodeExporter commented 9 years ago
Fixed width (25px) icons are much better. Isn't it?
Are they readable?

Original comment by DNelubin on 17 Jan 2011 at 7:16

Attachments:

GoogleCodeExporter commented 9 years ago
by JM ツ (January 21, 2011)
Great start! Could you make the app smaller. eventually add little icons in the 
bar? Best hopes for the next update!

Original comment by DNelubin on 21 Jan 2011 at 8:47

GoogleCodeExporter commented 9 years ago
Is the comment from JM the vote to multiple icons?

Original comment by DNelubin on 21 Jan 2011 at 8:48

GoogleCodeExporter commented 9 years ago
For ICS and later Android the skin with large numbers is implemented.

Original comment by DNelubin on 27 Dec 2012 at 4:36