在Android的Activity中绘制多个饼图 [英] Draw multiple pie charts in Activity of Android

查看:30
本文介绍了在Android的Activity中绘制多个饼图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我正在做一个需要用文本绘制多个饼图的项目.谁能给我一些想法,我使用 ListView 或循环 TextView 来实现这一点.而且,如何在一个活动中拥有多个画布.

Now I'm doing a project which need draw multiple pie charts with text. Can anyone give me some ideas, I use a ListView or loop TextView to achieve this. And, how can I have multiple canvases in one Activity.

干杯!!

多个带文本的饼图

推荐答案

您可以创建绘制饼图的自定义视图.并创建一个包含饼图视图和文本视图的布局.将此布局用于列表视图的行布局.

You can create a custom view which draws the pie chart. And create a layout which holds the pie chart view and textviews. Use this layout for the row layout of listview.

如果你需要帮助绘制饼图,这会给你一个想法

If you need help drawing piechart, this will give an idea

https://github.com/blessenm/PieChartDemo

这篇关于在Android的Activity中绘制多个饼图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆