Reputation: 22008
I'm trying to create a drawable that looks like the KitKat toast bacground:
but I have no idea how to recreate the fully round sides, I always end up with a rectangle with rounded edges like this:
or the sides aren't really round:
Any idea on how to accomplish this?
Btw, just setting the color of the Toast doesn't work.
Upvotes: 2
Views: 3311
Reputation: 3474
Android 9-patch shadow generator will help you achieve the desired 9patch, allowing you to customize the roundness of the sides to your liking.
"Fill & Outline" will also give you the ability to apply some color.
Upvotes: 7
Reputation: 10938
Do it like this:
This is the toast_frame_holo.9.png from Android-19 (HDPI)
Upvotes: 6