简体   繁体   English

饼图的自定义AdapterView

[英]Custom AdapterView for Pie Chart

So I have created a custom AdapterView for a pie chart view that I'm using. 因此,我为正在使用的饼图视图创建了自定义AdapterView。 I'm unsure of what I'm doing wrong but the pie chart is pretty choppy when I try to rotate it. 我不确定自己在做什么错,但是当我尝试旋转饼图时,饼图非常不稳定。 I suspect too much drawing is going on as traceview shows a lot of calls to Canvas.nDrawDisplayList, which is not directly in my control. 我怀疑绘图太多,因为traceview显示了对Canvas.nDrawDisplayList的大量调用,而这并不直接在我的控件中。

I've placed a sample project on github to checkout ( https://github.com/saulpower/ExpandablePieChart ). 我已经在github上放置了一个示例项目进行签出( https://github.com/saulpower/ExpandablePieChart )。 It is a cool little library if I can get it working! 如果我可以运行的话,这是一个很棒的小图书馆!

将所有内容移至Surfaceview并获得了相当不错的性能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM