I am using the onScroll method of GestureDetector.SimpleOnGestureListener to scroll a large bitmap on a canvas. When the scroll has ended I want to redraw the bitmap in case
If you're using SimpleGestureDetector to handle your scroll events, you can do this
SimpleGestureDetector
fun handleTouchEvents(event: MotionEvent): Boolean { if(event.action == ACTION_UP) yourListener.onScrollEnd() return gestureDetector.onTouchEvent(event) }