Catalin
Catalin

Reputation: 1899

Android 9patch image

When 9patch png images are used, do we need to provide them in xhdpi, hdpi and mdpi format also or only one resolution is enough? Because either way they will resize on resolution... or am I thinking something wrong?

Upvotes: 1

Views: 561

Answers (3)

frazer
frazer

Reputation: 426

You should use different sizes, otherwise a border on a LDPI device would look much thicker than on an XHDPI device

Upvotes: 6

Ash
Ash

Reputation: 1721

Nine-patches are widely used for background kind of images: most typically it would be some sort of border and a fill. You should provide only one resolution of 9patch, Android would scale it appropriately.

Upvotes: 0

Rishi
Rishi

Reputation: 987

For the Nine patch image only one resolution is enough because 9-patch image scales the image text according to the layouts...

Upvotes: 2

Related Questions