This comes up a lot, so I’m positing an image to illustrate the idea.
Here’s my related stack overflow answer, which uses the technique to make a shadow around a UITableView section of arbitrary size and shape.
This comes up a lot, so I’m positing an image to illustrate the idea.
Here’s my related stack overflow answer, which uses the technique to make a shadow around a UITableView section of arbitrary size and shape.
2 Comments
Android has a “file format” (really just an image with some magic lines at the edges) called 9-patch that allows you to set this up automagically. It’s neat!
http://developer.android.com/guide/developing/tools/draw9patch.html
Interesting… here’s a link. I guess that’s what they use for their resizeable buttons. Thanks Greg :)