在Andriod中绘制折线图或任何其他图形的代码 [英] Code to draw line graph or any othere graph in Andriod
本文介绍了在Andriod中绘制折线图或任何其他图形的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有来自数据库的数据,我想在Andriod中绘制线形图,但我不知道如何在Andriod中绘制线形,请帮帮我
Hello Guys,
I have data from database and i want to draw line graph in andriod but i don''t have any idea how to draw graph in andriod pls help me
Thank you in advance!!
推荐答案
只需用文本框制作一条静态线网格,然后绘制两点之间的线,这些线将不在屏幕上,因此所有用户
Just make a grid of static lines with textboxes and then graph the line between two points that would be off-screen so all the user sees is the line.
您将需要创建一个画布并在其上绘制/绘制线条,也可以使用已经为您做过的库.
其中包括
ChartDroid
AndroidPlot
AChartEngine
GraphView
适用于Android的Java图表
+更多
我只是快速浏览了GraphView,它似乎很容易使用,但不要让它动摇您.
/Darren
You will need to create a canvas and draw/plot the lines on it or you can use a library that already does it for you.
These include
ChartDroid
AndroidPlot
AChartEngine
GraphView
Java Charts for Android
+ more
I''ve only looked at GraphView quickly and it seems easy to use but don''t let that sway you.
/Darren
这篇关于在Andriod中绘制折线图或任何其他图形的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文