Nine-patches are one of the most powerful graphical components for creating scalable Android apps. They are, however, sometimes difficult to understand especially when starting with Android development.
The Android Asset Studio online tool has had a nine-patch editor for a while but today it got much better. Roman Nurikannouncedan addition of an interactive preview to the tool. In addition to easily editing the stretch regions, content padding and optical bounds you can now resize the preview and see how the asset scales directly in your browser. Once done, you can then export assets for different densities ready to be dropped to your app project.
If you're a developer send a link to this tool to your designers. They can now make sure that the assets they create scale correctly without need to put the assets into the app to try them out.
You find the Android Asset Studio Nine-patch Generator here: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/nine-patches.html
Read Roman's announcement here: https://plus.google.com/u/0/+RomanNurik/posts/EJrAU41o9wf
Android Asset Studio Nine-patch Generator Update Adds an Interactive Preview
Join the DZone community and get the full member experience.Join For Free
Published at DZone with permission of Juhani Lehtimaki, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.