List of usage examples for android.support.v4.view GestureDetectorCompat setOnDoubleTapListener
public void setOnDoubleTapListener(OnDoubleTapListener onDoubleTapListener)
From source file:org.videolan.vlc.gui.video.PopupManager.java
public void showPopup() { mService.addCallback(this); LayoutInflater li = (LayoutInflater) VLCApplication.getAppContext() .getSystemService(Context.LAYOUT_INFLATER_SERVICE); mRootView = (PopupLayout) li.inflate(R.layout.video_popup, null); mPlayPauseButton = (ImageView) mRootView.findViewById(R.id.video_play_pause); mCloseButton = (ImageView) mRootView.findViewById(R.id.popup_close); mExpandButton = (ImageView) mRootView.findViewById(R.id.popup_expand); mPlayPauseButton.setOnClickListener(this); mCloseButton.setOnClickListener(this); mExpandButton.setOnClickListener(this); GestureDetectorCompat gestureDetector = new GestureDetectorCompat(mService, this); gestureDetector.setOnDoubleTapListener(this); mRootView.setGestureDetector(gestureDetector); final IVLCVout vlcVout = mService.getVLCVout(); vlcVout.setVideoView((SurfaceView) mRootView.findViewById(R.id.player_surface)); vlcVout.attachViews();//from w w w. j a va2 s . co m mService.setVideoTrackEnabled(true); vlcVout.addCallback(this); if (!mService.isPlaying()) mService.playIndex(mService.getCurrentMediaPosition()); mService.startService(new Intent(mService, PlaybackService.class)); showNotification(); }