开发者

Android: how to make a "pie Chart" with touchable wedges And the whole thing can rotate

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜