INNER CODE UNIT · Java

TapDetector

jjoe64/GraphView · src/main/java/com/jjoe64/graphview/GraphView.java:74

    private class TapDetector {
        /**
         * save the time of the last down event
         */
        private long lastDown;

        /**
         * point of the tap down event
         */
        private PointF lastPoint;

        /**
         * to be called to process the events
         *
         * @param event
         * @return true if there was a tap event. otherwise returns false.
         */
        public boolean onTouchEvent(MotionEvent event) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…