Search code examples
androidnine-patch

Create 9patch with fully round sides


I'm trying to create a drawable that looks like the KitKat toast bacground:

enter image description here

but I have no idea how to recreate the fully round sides, I always end up with a rectangle with rounded edges like this:

enter image description here

or the sides aren't really round:

enter image description here

Any idea on how to accomplish this?

Btw, just setting the color of the Toast doesn't work.


Solution

  • Do it like this:

    holo toast background from API 19

    This is the toast_frame_holo.9.png from Android-19 (HDPI)