I have designed an android calendar application. When I draw events in canvas, I calculate event position according to time.
this is image before scrolling
My problem is, after scrolling. When I try to get touch position, it gives point with respect to currently showing screen origin.
But I need to get exact point where I draw events.
Use getScrollX() and getScrollY() and add it to event position as offset.