android.app
Class ListFragment

java.lang.Object
  extended by android.app.Fragment
      extended by android.app.ListFragment
All Implemented Interfaces:
ComponentCallbacks, ComponentCallbacks2, View.OnCreateContextMenuListener

public class ListFragment
extends Fragment


Nested Class Summary
 
Nested classes/interfaces inherited from class android.app.Fragment
Fragment.InstantiationException, Fragment.SavedState
 
Field Summary
 
Fields inherited from interface android.content.ComponentCallbacks2
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_UI_HIDDEN
 
Constructor Summary
ListFragment()
           
 
Method Summary
 ListAdapter getListAdapter()
           
 ListView getListView()
           
 long getSelectedItemId()
           
 int getSelectedItemPosition()
           
 View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
           
 void onDestroyView()
           
 void onListItemClick(ListView l, View v, int position, long id)
           
 void onViewCreated(View view, Bundle savedInstanceState)
           
 void setEmptyText(CharSequence text)
           
 void setListAdapter(ListAdapter adapter)
           
 void setListShown(boolean shown)
           
 void setListShownNoAnimation(boolean shown)
           
 void setSelection(int position)
           
 
Methods inherited from class android.app.Fragment
dump, equals, getActivity, getArguments, getFragmentManager, getId, getLoaderManager, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityCreated, onActivityResult, onAttach, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onHiddenChanged, onInflate, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onSaveInstanceState, onStart, onStop, onTrimMemory, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, startActivity, startActivityForResult, toString, unregisterForContextMenu
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListFragment

public ListFragment()
Method Detail

onCreateView

public View onCreateView(LayoutInflater inflater,
                         ViewGroup container,
                         Bundle savedInstanceState)
Overrides:
onCreateView in class Fragment

onViewCreated

public void onViewCreated(View view,
                          Bundle savedInstanceState)
Overrides:
onViewCreated in class Fragment

onDestroyView

public void onDestroyView()
Overrides:
onDestroyView in class Fragment

onListItemClick

public void onListItemClick(ListView l,
                            View v,
                            int position,
                            long id)

setListAdapter

public void setListAdapter(ListAdapter adapter)

setSelection

public void setSelection(int position)

getSelectedItemPosition

public int getSelectedItemPosition()

getSelectedItemId

public long getSelectedItemId()

getListView

public ListView getListView()

setEmptyText

public void setEmptyText(CharSequence text)

setListShown

public void setListShown(boolean shown)

setListShownNoAnimation

public void setListShownNoAnimation(boolean shown)

getListAdapter

public ListAdapter getListAdapter()


Copyright © 2008-2012. All Rights Reserved.