I would like to create Drawable
that contains nine-patch
and a Bitmap
.
I put them together in Layer List Drawable, but it turns out that Bitmap
is extending nine-patch
beyond the edge.
Is there any way to "cut" Bitmap
so it won't be overlapping nine-patch
?
EDIT: Actually it seems that I would like to shrink background to wrap content and ingore big bitmap in background.
a nine patch by definition doesn't have a size.
From the sounds of things you haven't configured your nine patch correctly.
Please attach an image of what you're seeing and your source files.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.