P
P
prosticoder2011-01-19 17:16:59
Android
prosticoder, 2011-01-19 17:16:59

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

1 answer(s)
P
PVOID, 2011-01-24
@PVOID

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 question

Ask a Question

731 491 924 answers to any question