显示弹出式上点击图中的一个点AChartEngine [英] Showing popup on clicking a point in graph AChartEngine

查看:170
本文介绍了显示弹出式上点击图中的一个点AChartEngine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示包含在其使用AchartEngine用于绘制图形的曲线图点击的点的信息一点弹出。我目前显示举杯点的信息,但要求是要显示它在图中的点附近。是否有相关API,我怎么能完成这一任务的任何建议,任何这样的功能?先谢谢了。

I want to show a little popup containing the information of the point clicked in a graph which uses AchartEngine for drawing graphs. I am currently showing the point information in a toast but the requirement is to show it near the point in the graph. Is there any such feature in the API or any suggestions how I can accomplish this task ? Thanks in advance.

推荐答案

在祝酒听起来像显示信息的好方法。吐司取x和y坐标为它的位置是还挺整齐,你需要什么。在X / Y共同ords是像素单位相对于屏幕的宽/高像素梦诗。

The toast sounds like a good way to display information. Toast takes the x and y co-ordinate for it's placement which is kinda neat and what you need. The x/y co-ords are in pixels units in relation to the your screen's width/height px dimens.

您不需要一个对话框弹出,我相信。除非你真的需要用户确认,例如确定/完成或取消/辞退操作按钮。

You don't need a dialog popup, i believe. Unless you really need user confirmations like OK/Done or Cancel/Dismiss action buttons.

您也可以看看片段使用您的需求。

You can also look at fragments to use for your needs.

但我认为面包非常适合您的需求。你的选择。

But i think toast is ideal for your needs. Your choice.

这篇关于显示弹出式上点击图中的一个点AChartEngine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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