Code example for SupportMapFragment

Methods: getActivity, onCreateView

0
        mOriginalContentView = null; 
    } 
 
    @Override 
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 
        mOriginalContentView = super.onCreateView(inflater, container, savedInstanceState); 
        TouchableFrameLayout frameLayout = new TouchableFrameLayout(getActivity()); 
        frameLayout.addView(mOriginalContentView); 
        return frameLayout; 
    } 
 
    @Override 
    public View getView() { 
        return mOriginalContentView; 
    } 
 
}