Draw a circle in xml in android

I am trying to display my layout using xml android.

Here is what I want to do:

I have 12 buttons with animals like this: and the circle is the background.

I have no idea related to this, how do I get started? Please give me some suggestion so that I can continue. What should I use for this?

+4
source share
2 answers

You want to create a custom view. A good place to start is, as always, Android’s own development site: http://developer.android.com/training/custom-views/create-view.html

+5
source

I think you can do it with xml. this requires simple math calculations that you cannot do in xml. you extend the View class the most and create your own View. then you can use it in xml.

+1
source

All Articles