hdpi ldpi mdpi icon/menu resolution

送分小仙女□ 提交于 2019-12-20 11:07:05

问题


I want to set an icon for my application, and don't know the exact resolution to put in the three folders hdpi/ldpi/mdpi . Also i want to set icons to my menu options and don't know what resolution to apply.

Thank you for your help.


回答1:


Everything you need to know is here in the official documentation.




回答2:


Launcher icons

48 × 48 (mdpi)
72 × 72 (hdpi)
96 × 96 (xhdpi)
144 × 144 (xxhdpi)
192 × 192 (xxxhdpi)
512 × 512 (Google Play store).png 

Action bar, Dialog & Tab icons

24 × 24 area in 32 × 32 (mdpi)
36 × 36 area in 48 × 48 (hdpi)
48 × 48 area in 64 × 64 (xhdpi)
72 × 72 area in 96 × 96 (xxhdpi)
96 × 96 area in 128 × 128 (xxxhdpi)

.png These icons are used in the action bar menu. The first number is the size of the icon area, and the second is file size.

Notification icons

 22 × 22 area in 24 × 24 (mdpi) 
 33 × 33 area in 36 × 36 (hdpi)
 44 × 44 area in 48 × 48 (xhdpi)
 66 × 66 area in 72 × 72 (xxhdpi)
 88 × 88 area in 96 × 96 (xxxhdpi)

.png These are used to represent application notifications in the status bar. They should be flat (no gradients), white and face-on perspective

Small Contextual Icons

16 × 16 (mdpi)
24 × 24 (hdpi)
32 × 32 (xhdpi)
48 × 48 (xxhdpi)
64 × 64 (xxxhdpi)

.png Small icons are used to surface actions and/or provide status for specific items. For example, in the Gmail app, each message has a star icon that marks the message as important.

For more information, use the android developers iconography material.

http://developer.android.com/design/style/iconography.html




回答3:


This Link is Help you To set Images for Your Application

http://developer.android.com/guide/practices/ui_guidelines/icon_design.html

Other than Below Link is also may help You....

http://developer.android.com/guide/practices/ui_guidelines/widget_design.html




回答4:


for app's icon:

ldpi should be 36 x 36

mdpi should be 48 x 48

hdpi should be 72 x 72

xhdpi should be 96 x 96

xxhdpi should be 144 x 144



来源:https://stackoverflow.com/questions/5849396/hdpi-ldpi-mdpi-icon-menu-resolution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!