I am successfully building a 9patch drawable at runtime on Android 3.0+ using the excellent gist provided by Brian Griffey (found here).
Essentially I load the raw (
Looks like working with 9patches is described in depth on SO already - Create a NinePatch/NinePatchDrawable in runtime