Code example for SupportMapFragment

Methods: getActivity, onCreateView

0
    public View mOriginalContentView;
    public TouchableWrapper mTouchView;
 
    @Override 
    public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {
        mOriginalContentView = super.onCreateView(inflater, parent, savedInstanceState);
 
        mTouchView = new TouchableWrapper(getActivity());
        mTouchView.addView(mOriginalContentView);
 
        return mTouchView;
    } 
 
    @Override 
    public View getView() {
        return mOriginalContentView;
    } 
 
    public void setOnTouchListener(OnTouchListener listener) {
        mTouchView.setOnTouchListener(listener);
Stop searching for code, let great code find you!  Add Codota to your java IDE