Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

9 patch not working well [closed]

I have created a simple 9 patch for an android EditText background. It works exactly as expected when I preview the graphical layout in eclipse.

The problem is that when I install the app on the device, the said EditText is horribly scaled, almost indistinguishable.

What could be the problem?

like image 343
Radu Avatar asked Jan 29 '26 20:01

Radu


1 Answers

Few things I can think about:

  1. Is it called image_name.9.png?
  2. Did you save it using the draw9patch tool?
  3. Did you place the image in all draw folders? (hdpi, mdpi, etc.)

You state that it works well in Eclipse, so it probably isn't 1 or 2.

like image 82
Shpongoloid Avatar answered Feb 02 '26 01:02

Shpongoloid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!