public class ArtistDetailFragment
extends android.app.ListFragment
Modifier and Type | Class and Description |
---|---|
static interface |
ArtistDetailFragment.ArtistDetailListener |
static class |
ArtistDetailFragment.ReleaseAdapter |
Constructor and Description |
---|
ArtistDetailFragment() |
Modifier and Type | Method and Description |
---|---|
static ArtistDetailFragment |
newInstance() |
void |
onActivityCreated(android.os.Bundle savedInstanceState)
Called when the fragment's activity has been created and this
fragment's view hierarchy instantiated.
|
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.
|
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.
|
void |
onResume()
Called when the fragment is visible to the user and actively running.
|
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, onSaveInstanceState, onStart, onStop, onTrimMemory, onViewStateRestored, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivity, startActivityForResult, startActivityForResult, toString, unregisterForContextMenu
public static ArtistDetailFragment newInstance()
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.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.public void onResume()
android.app.Fragment
Activity.onResume
of the containing
Activity's lifecycle.onResume
in class android.app.Fragment
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 clicked