Code example for ListFragment

Methods: onDetach

0
        mCallbacks = (Callbacks) activity;
    } 
 
    @Override 
    public void onDetach() { 
        super.onDetach(); 
        mCallbacks = Callbacks;
    } 
 
    @Override 
    public void onListItemClick(ListView listView, View view, int position, long id) {
        super.onListItemClick(listView, view, position, id);
        mCallbacks.onItemSelected(String.valueOf(position));     
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE