I'm struggling to create pure xml drawable, that would align 4 other xml-drawables in the 4 corners (top-left, top-right, bottom-left, bottom-right) of the root one. I thought of using <layer-list>
with <bitmap android:gravity="bottom|right">
bit it turned out that you can't use xml as bitmap src. What else can I try to do?
Asked
Active
Viewed 51 times
0
-
what botmaps are you talking about? why pure xml? – pskink Jul 06 '15 at 17:30
-
@pskink I'm talking about `
` tag which you can declare inside ` – Mikhail Jul 06 '15 at 17:35- ` of `
` - ` of `
-
inside
- you can declare any other drawable, not only
– pskink Jul 06 '15 at 17:39 - you can declare any other drawable, not only
-
Any reason for not using a relative layout/any other wrapper layouts that would allow easy positioning of items? – Naveed Jul 06 '15 at 17:58
-
@Naveed I want to use this drawable as a background for `
` widget. It seems I'll have to do something like what you have suggested, but I wonder if there's simpler way – Mikhail Jul 06 '15 at 18:08