Akash049 / android-ui-utils

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

Lint warns of incorrect size for notification icons #173

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When running lint on my project that uses icons generated with this library, I 
get the following warnings:

res/drawable-hdpi/ic_stat_logo.png: Warning: Incorrect icon size for 
drawable-hdpi/ic_stat_logo.png: icon size should be at most 24x38, but was 
38x38 [IconExpectedSize]

res/drawable-mdpi/ic_stat_logo.png: Warning: Incorrect icon size for 
drawable-mdpi/ic_stat_logo.png: icon size should be at most 16x25, but was 
25x25 [IconExpectedSize]

res/drawable-xhdpi/ic_stat_logo.png: Warning: Incorrect icon size for 
drawable-xhdpi/ic_stat_logo.png: icon size should be at most 32x50, but was 
50x50 [IconExpectedSize]

I am not sure if this is a Lint bug or android-ui-utils bug.

Original issue reported on code.google.com by catalin....@gmail.com on 26 Nov 2012 at 11:12

GoogleCodeExporter commented 8 years ago
What is your project's minSdkVersion?

Original comment by romannu...@google.com on 26 Nov 2012 at 2:02

GoogleCodeExporter commented 8 years ago
<uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="17" />

Original comment by catalin....@gmail.com on 26 Nov 2012 at 2:05

GoogleCodeExporter commented 8 years ago
The web version of the Asset Studio generates icons for all versions of 
Android. As soon as you set your minSdkVersion to 9, you no longer need the 
earlier icons, and can move all icons from drawable-_dpi-v9 directories to the 
directory without -v9.

You can also use the Eclipse version of the Asset Studio to only create icons 
relevant to the API levels you're supporting.

Original comment by romannu...@google.com on 26 Nov 2012 at 2:08