Code example for SupportMapFragment

Methods: getActivity, onCreateView

0
 
 
 
@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; 
} 
 }