Answer the question
In order to leave comments, you need to log in
Composite Drawable in Android?
Hello.
The problem is this: you need to make a Drawable (ShapeDrawable) composite element that looks like a circle of a given radius with a picture in the center. I have no idea how to implement this.
Many thanks to everyone who will help.
Answer the question
In order to leave comments, you need to log in
It's all right?
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval" />
</item>
<item>
<bitmap android:src="@drawable/image" android:gravity="center" />
</item>
</layer-list>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question