mpellegr
mpellegr

Reputation: 3182

Creating drawables for density AND screen size?

Is there a way to create drawables for screen density AND screen size? Currently I'm putting drawables only into the standard screen density categories (MDPI, HDPI, XHDPI, XXHDPI). This works if comparing four devices with the same screen size but different densities. If I have another screen using these drawables, the graphics look either too big or too small proportional to the device size, which is especially noticeable on tablets. How can I make drawables to avoid this?

Upvotes: 1

Views: 1295

Answers (1)

Caner
Caner

Reputation: 59168

Read this:

http://developer.android.com/guide/practices/screens_support.html#density-independence

Basically you need to avoid using "pixels" when setting dimensions and have multiple resolution images. Your images will be scaled automatically.

Upvotes: 1

Related Questions