Frage

I read official iconographic article and I don't understand in which directory I should place small/contextual icons. As understand for action bar icons I should use drawable-XXXX but info for small icons wasn't mentioned.

War es hilfreich?

Lösung 2

You can have folders such as:

drawable
drawable-ldpi
drawable-mdpi
drawable-hdpi
drawable-xhdpi
drawable-xxhdpi
drawable-xxxhdpi

under "res" folder. Any file which has no specific dimensions can go into "drawable". You can also have "raw" folder under res, which can be used to any other file type.

For more info see this : http://developer.android.com/guide/topics/resources/providing-resources.html

Andere Tipps

You can use the small/contextual icons the same way as the ActionBar icons. Just put the secific sizes to your drawable-xxxx folder.

Theres also a good article "Multi Screen Support" that should be read.

And here is an Android Design Icons Pack where you can have graphic buttons that represent the most important actions for users.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top