Reputation: 5725
I am trying to display my layout via android xml.
Here's what I want to do:
I have 12 buttons with a animals image like this one: , and the circle is the background.
I do not have any idea related to this, how should I start? Please give me some suggestion so I can go ahead. What things should I use to do this?
Upvotes: 4
Views: 2385
Reputation: 822
i think you can do this with xml. this need simple mathematic calculation that you can not do in xml. you most extend View class and create your own View. then you can use it in xml.
Upvotes: 1
Reputation: 6319
You'd be looking for making 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
Upvotes: 5