I have need to make a sort of "开发者_开发技巧Pie Chart"-style circular display. the wedges of the chart have to be touchable, and the whole circle has to be able to spin 360deg..
I'm still an android noob, but I'm guessing that I can't do this with a Layout.. right?
preferably, the wedges would be image assets that I create in Photoshop, and not programmaticaly created
does anyone have any Idea where to start with this?
For such an irregular layout, you're going to end up using a SurfaceView
and drawing the wedges onto a Canvas
. You'll need to grab the x-y coordinates of touches and work out yourself which wedge has been touched and take appropriate action.
精彩评论