Displaying a pop-up window when you click a point in the AChartEngine chart

I want to show a small popup containing the information of a point clicked in a graph that AchartEngine uses to draw graphs. I am currently displaying information about points in a toast, but the requirement is to show it near a point on the graph. Is there such an opportunity in the API or any suggestions on how I can accomplish this task? Thanks in advance.

+1
source share
1 answer

Toast sounds like a good way to display information. The toast takes the x and y coordinates for the placement, which is neat and what you need. The x / y coordinates are in units of pixels depending on the width and width of the screen.

You do not need a popup dialog, I believe. If you really do not need user confirmation, for example, the OK / Done or Cancel / Dismiss buttons.

You can also see fragments that will be used for your needs.

But I think the toast is perfect for your needs. Your choice.

+2
source

Source: https://habr.com/ru/post/1531740/


All Articles