Use GestureDetectorCompat instead of GestureDetector