Code example for ListFragment

Methods: getListView, onViewCreated, setListShown

0
        mPreferenceManager = onCreatePreferenceManager();    
    } 
     
    @Override 
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
 
		lv = getListView();
        lv.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);                	
        setListShown(true);
 
        PreferenceScreen screen = createPreferenceHierarchy(mPreferenceManager);
        if (screen != null) setPreferenceScreen(screen);
        postBindPreferences(); 
         
    	//((OnPreferenceAttachedListener)getActivity()).onPreferenceAttached(getPreferenceScreen(), 0); 
	} 
     
	protected abstract PreferenceScreen createPreferenceHierarchy(PreferenceManager prefMan);
 
    @Override