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.
Asked
Active
Viewed 490 times
1 Answers
2
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.

VJ Vélan Solutions
- 6,434
- 5
- 49
- 63
-
I don't need to display buttons in the popup, Also I see only two cretaeToast() methods which don't seem to be taking xy coordinates as input parameters. – Chandrashekhar Dec 09 '13 at 02:44
-
I just found the methods to set XY params. Thanks for your answer Harikris – Chandrashekhar Dec 09 '13 at 02:56