@Override protected void didViewLoaded() { super.didViewLoaded(); _contentView = (ViewGroup) getView().findViewById(R.id.contentView); if (_contentView == null) { _contentView = (ViewGroup) getView(); } if (_gestureDetector == null) { _gestureDetector = new GestureDetector(getContext(), this, getHandler()); } getView().setOnTouchListener(this); }