public class ArtistSearchFragment extends AbsSearchFragment
Modifier and Type | Class and Description |
---|---|
static class |
ArtistSearchFragment.ArtistAdapter |
mProgressBar, mSearchEdittext
Constructor and Description |
---|
ArtistSearchFragment() |
Modifier and Type | Method and Description |
---|---|
protected void |
doSearch() |
protected java.lang.String |
getTitle() |
static ArtistSearchFragment |
newInstance() |
void |
onActivityCreated(android.os.Bundle savedInstanceState)
Called when the fragment's activity has been created and this
fragment's view hierarchy instantiated.
|
void |
onListItemClick(android.widget.ListView l,
android.view.View v,
int position,
long id)
This method will be called when an item in the list is selected.
|
onCreateView, setProgressVisible
getListAdapter, getListView, getSelectedItemId, getSelectedItemPosition, onDestroyView, 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, 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
public static ArtistSearchFragment newInstance()
public void onActivityCreated(android.os.Bundle savedInstanceState)
android.app.Fragment
Fragment.setRetainInstance(boolean)
to retain their instance,
as this callback tells the fragment when it is fully associated with
the new activity instance. This is called after Fragment.onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle)
and before Fragment.onViewStateRestored(Bundle)
.onActivityCreated
in class android.app.Fragment
savedInstanceState
- If the fragment is being re-created from
a previous saved state, this is the state.protected void doSearch()
doSearch
in class AbsSearchFragment
public void onListItemClick(android.widget.ListView l, android.view.View v, int position, long id)
android.app.ListFragment
onListItemClick
in class android.app.ListFragment
l
- The ListView where the click happenedv
- The view that was clicked within the ListViewposition
- The position of the view in the listid
- The row id of the item that was clickedprotected java.lang.String getTitle()
getTitle
in class AbsSearchFragment