Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Official Icons for XXHDPI and XXXHDPI

With screen resolutions increasing in pixels Google is promoting the use of XXHDPI and XXXHDPI, icons in the official documents.

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

But in their official Android download packs they only go up to XHDPI.

http://developer.android.com/design/downloads/index.html

Do they expect us to create these icons when can't be bothered too?

What are other developers doing especially for the Holo icons, are they creating it from SVG.

Update

If you download the the Icon Pack and not the "all pack", it now contains XXHDPI icons but still no XXXHDPI.

http://developer.android.com/downloads/design/Android_Design_Icons_20131106.zip

like image 411
pt123 Avatar asked Nov 08 '13 11:11

pt123


People also ask

What is Xhdpi?

xhdpi Resources for extra high-density (xhdpi) screens (~320dpi). nodpi Resources for all densities. These are density-independent resources.

What is Xhdpi in Android?

Hdpi is a 1.5:1, and can be thought of as a HD (high-definition) display. And xhdpi is 2:1, much like Apple retina displays. . The normal mdpi is based on a 160 dpi screen, which again is the same as a single pixel unit in your graphics software.

Is there a way to create Xxhdpi Xhdpi Hdpi Mdpi and LDPI Drawables from a large scale image?

Option #1: Just ship the -xxhdpi drawables and let Android downsample them for you at runtime (downside: will only work on fairly recent devices, where -xxhdpi is known). Option #2: Use Android Asset Studio to downsample them for you. Option #3: Automate the process within a graphics editor, per ssantos' answer.

How do I find pixel density on Android?

getDisplayMetrics(); Though Android doesn't use a direct pixel mapping, it uses a handful of quantized Density Independent Pixel values then scales to the actual screen size. So the metrics. densityDpi property will be one of the DENSITY_xxx constants ( 120 , 160 , 213 , 240 , 320 , 480 or 640 dpi).


1 Answers

Since they provide ai file, which is vector-based, you can export any scale you want.

Btw, Nexus 5 (and many other 1080p phones) is already XXHDPI, so you are supposed to provide at least XXHDPI icons.

like image 154
kevin Avatar answered Oct 19 '22 10:10

kevin