Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a tool to allow the use of Android's 9-patches in Javascript?

I'd like a Javascript library that will stretch/scale 9-patch images correctly. Know of one?

like image 252
Jeremy Logan Avatar asked Apr 22 '10 21:04

Jeremy Logan


1 Answers

I did some research on nine-patch images a while back and concluded they were an Android thing. Hence, I doubt such a tool exists.

If you are using this from a WebView-powered Android app, you could always use addJavascriptInterface() to expose the Java APIs to scale it for you.

like image 195
CommonsWare Avatar answered Oct 05 '22 13:10

CommonsWare