Android - Dragging lines/annotations


The “Building a range selector with ShinobiCharts” tutorial - and it was quite clear/useful for iOS. 

I’m trying to do something similar in Android, is there a way to listen for touch/drag events on an annotation in Android?

Or do I just need to implement ShinobiChart.OnGestureListener and listen for the whole chart, search for the annotation that’s closest to… a long touch event, and then handle movement using  onSwipe()?


Hi andrewvariable,

Have you tried getting the View from the annotation and add a listener directly to that?

Kind regards,



Hey Patrick,

I ended up getting it to work with the ShinobiChart.OnGestureListener just fine actually.
Used the listener to look for swipes near the annotations in question, and if they were close enough - move them accordinly.

It’s working pretty smoothly with this solution.




Hi Andrew,

Great stuff! Glad to hear you got it working and thanks for sharing it with the community!

Kind regards,