/** {@inheritDoc} */ public boolean onTouch(View view, MotionEvent me) { // See if the motion event is on a Marker for (Marker marker : ARData.getMarkers()) { if (marker.handleClick(me.getX(), me.getY())) { if (me.getAction() == MotionEvent.ACTION_UP) markerTouched(marker); return true; } } return super.onTouchEvent(me); };
/** Called when the zoom bar has changed. */ protected void updateDataOnZoom() { float zoomLevel = calcZoomLevel(); ARData.setRadius(zoomLevel); ARData.setZoomLevel(FORMAT.format(zoomLevel)); ARData.setZoomProgress(myZoomBar.getProgress()); }