public class TrackDetailFragment
extends android.app.Fragment
Modifier and Type | Class and Description |
---|---|
static interface |
TrackDetailFragment.TrackDetailListener |
static class |
TrackDetailFragment.TrackDetails |
Constructor and Description |
---|
TrackDetailFragment() |
Modifier and Type | Method and Description |
---|---|
static TrackDetailFragment |
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)
Called to have the fragment instantiate its user interface view.
|
void |
onPause()
Called when the Fragment is no longer resumed.
|
void |
onPreviewClick() |
void |
onResume()
Called when the fragment is visible to the user and actively running.
|
static void |
writeFile(java.io.File file,
java.lang.String contents) |
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, onDestroyView, onDetach, onHiddenChanged, onInflate, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPrepareOptionsMenu, onSaveInstanceState, onStart, onStop, onTrimMemory, onViewCreated, onViewStateRestored, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivity, startActivityForResult, startActivityForResult, toString, unregisterForContextMenu
public static TrackDetailFragment newInstance()
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
android.app.Fragment
Fragment.onCreate(Bundle)
and Fragment.onActivityCreated(Bundle)
.
If you return a View from here, you will later be called in
Fragment.onDestroyView()
when the view is being released.
onCreateView
in class android.app.Fragment
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 onPreviewClick()
public void onPause()
android.app.Fragment
Activity.onPause
of the containing
Activity's lifecycle.onPause
in class android.app.Fragment
public static void writeFile(java.io.File file, java.lang.String contents) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException