Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Nine-patch equivalent for other platforms

I have just learned about Android nine-patches idea, and it is a pretty good idea. My question is if it is an Android pattern or there is implementations like that for other platforms, probably differently named.

Thanks!

like image 969
Guilherme Avatar asked Apr 06 '11 17:04

Guilherme


2 Answers

In iOS you can also strech images in code with StretchableImages. You specify the left, right caps and the "rest" is stretched. I think is basicaly the same idea, this is something like a tutorial on it: http://blog.chomperstomp.com/creating-dynamically-re-sizable-buttons-for-iphone-apps/

like image 127
ferostar Avatar answered Oct 06 '22 17:10

ferostar


There is another SO question here that mentions a library released under Apache license for iPhone. I haven't used it but is worth checking out.

like image 25
omermuhammed Avatar answered Oct 06 '22 19:10

omermuhammed