Normally an image which has been 9-sliced will stretch automatically if it is loaded from a resource. Is it possible to retain this functionality when loading the image using a file path and BitmapFactory?
Asked
Active
Viewed 362 times
2 Answers
0
I have not tried this, but it seems as though you can just create a NinePatchDrawable
with the Bitmap
, check out the docs.
Edit: Hmmm... it might not be as simple as it seems, see this answer.