nine-patch

Create a NinePatch/NinePatchDrawable in runtime

天涯浪子 提交于 2019-11-26 03:34:07
问题 I have a requirement on my Android application that parts on the graphics should be customizable, by retrieving new colors and images from the server side. Some of these images are nine-patch images. I can\'t find a way to create and display these nine-patch images (that have been retrieved over the network). The nine-patch images are retrieved and kept in the application as Bitmaps. In order to create a NinePatchDrawable, you either need the corresponding NinePatch or the chunk ( byte[] ) of