I want to design menu like this.
I have tried animation but it does not retains position of buttons.
if any one have done this type of menu please guide me.
Any help will be appreciated.
I want to design menu like this.
I have tried animation but it does not retains position of buttons.
if any one have done this type of menu please guide me.
Any help will be appreciated.
I think Rotatory wheel in android which give you perfect idea about to create this type of widget. Its also helpful for me. Also check for This Example.
I recently created this circular menu to add up in my recent project. It looks like
What you need is to create a new View and draw this view, check for the user inputs (where he is touching), design a feedback mechanism, for example, in my view, if user touches any of the 5 arcs, background color changes to skyblue. Here is my code for onDrawMethod.
Some reference that you might need.
bitmap -> is an arraylist that contains images
arcToched[] -> is an array that defines the background for arc, the values of this boolean array gets modified in onTouchEvent() method.
lineCore, smallCircleCore ..... are paints.
I know this isn't the best way and not professional too. I created this menu as per need. Its not scale able in a way until you change the angle calculations.
This view is highly inspired from Catch Notes Application. The only trouble I face in creating this view was to determine the arc touched. The only animation I used in here are just like again Catch Notes (the one in which circular menu extends a bit more than given size then gets back normal).
http://code.google.com/p/radial-menu-widget/
It is what all you need .download the jar and integrate it like example on the above link