Search code examples
androidandroid-layoutnine-patch

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?


Solution

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