public abstract class AbsSearchFragment
extends android.app.ListFragment
Modifier and Type | Field and Description |
---|---|
protected android.widget.ProgressBar |
mProgressBar |
protected android.widget.EditText |
mSearchEdittext |
Constructor and Description |
---|
AbsSearchFragment() |
Modifier and Type | Method and Description |
---|---|
protected void |
doSearch() |
protected abstract java.lang.String |
getTitle() |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Provide default implementation to return a simple list view.
|
protected void |
setProgressVisible(boolean visible) |
getListAdapter, getListView, getSelectedItemId, getSelectedItemPosition, onDestroyView, onListItemClick, onViewCreated, setEmptyText, setListAdapter, setListShown, setListShownNoAnimation, setSelection
dump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLayoutInflater, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, 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, onViewStateRestored, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivity, startActivityForResult, startActivityForResult, toString, unregisterForContextMenu
protected android.widget.EditText mSearchEdittext
protected android.widget.ProgressBar mProgressBar
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
android.app.ListFragment
android.R.id.list
and can optionally
have a sibling view id android.R.id.empty
that is to be shown when the list is empty.
If you are overriding this method with your own custom content,
consider including the standard layout android.R.layout#list_content
in your layout file, so that you continue to retain all of the standard
behavior of ListFragment. In particular, this is currently the only
way to have the built-in indeterminant progress state be shown.
onCreateView
in class android.app.ListFragment
inflater
- The LayoutInflater object that can be used to inflate
any views in the fragment,container
- If non-null, this is the parent view that the fragment's
UI should be attached to. The fragment should not add the view itself,
but this can be used to generate the LayoutParams of the view.savedInstanceState
- If non-null, this fragment is being re-constructed
from a previous saved state as given here.protected void setProgressVisible(boolean visible)
protected void doSearch()
protected abstract java.lang.String getTitle()