Code example for ListFragment

Methods: onViewCreatedsetListAdapter

0
    	super.onActivityCreated(ofJoy);
    } 
     
    @Override 
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
         
        setListAdapter(mAdapter);
         
        if (savedInstanceState != null && savedInstanceState
                .containsKey(STATE_ACTIVATED_POSITION)) {
         //   setActivatedPosition(savedInstanceState.getInt(STATE_ACTIVATED_POSITION)); 
        } 
         
    } 
     
    @Override 
    public void onDetach() { 
        super.onDetach(); 
        mCallbacks = sDummyCallbacks;