public abstract class PreferenceFragment
extends android.support.v4.app.Fragment
| 修飾子とタイプ | クラスと説明 |
|---|---|
static interface |
PreferenceFragment.OnPreferenceStartFragmentCallback
Interface that PreferenceFragment's containing activity should
implement to be able to process preference items that wish to
switch to a new fragment.
|
| コンストラクタと説明 |
|---|
PreferenceFragment() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addPreferencesFromIntent(android.content.Intent intent)
Adds preferences from activities that match the given
Intent. |
void |
addPreferencesFromResource(int preferencesResId)
Inflates the given XML resource and adds the preference hierarchy to the current
preference hierarchy.
|
android.preference.Preference |
findPreference(java.lang.CharSequence key)
Finds a
Preference based on its key. |
android.widget.ListView |
getListView() |
android.preference.PreferenceManager |
getPreferenceManager()
Returns the
PreferenceManager used by this fragment. |
android.preference.PreferenceScreen |
getPreferenceScreen()
Gets the root of the preference hierarchy that this fragment is showing.
|
void |
onActivityCreated(android.os.Bundle savedInstanceState) |
void |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data) |
void |
onCreate(android.os.Bundle paramBundle) |
android.view.View |
onCreateView(android.view.LayoutInflater paramLayoutInflater,
android.view.ViewGroup paramViewGroup,
android.os.Bundle paramBundle) |
void |
onDestroy() |
void |
onDestroyView() |
boolean |
onPreferenceTreeClick(android.preference.PreferenceScreen preferenceScreen,
android.preference.Preference preference)
Called when a preference in the tree rooted at this
PreferenceScreen has been clicked. |
void |
onSaveInstanceState(android.os.Bundle outState) |
void |
onStart() |
void |
onStop() |
void |
setPreferenceScreen(android.preference.PreferenceScreen preferenceScreen)
Sets the root of the preference hierarchy that this fragment is showing.
|
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getEnterTransition, getExitTransition, getFragmentManager, getId, getLayoutInflater, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isVisible, onAttach, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDetach, onHiddenChanged, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onViewCreated, onViewStateRestored, registerForContextMenu, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, startActivity, startActivityForResult, toString, unregisterForContextMenupublic void onCreate(android.os.Bundle paramBundle)
onCreate クラス内 android.support.v4.app.Fragmentpublic android.view.View onCreateView(android.view.LayoutInflater paramLayoutInflater,
android.view.ViewGroup paramViewGroup,
android.os.Bundle paramBundle)
onCreateView クラス内 android.support.v4.app.Fragmentpublic void onActivityCreated(android.os.Bundle savedInstanceState)
onActivityCreated クラス内 android.support.v4.app.Fragmentpublic void onStart()
onStart クラス内 android.support.v4.app.Fragmentpublic void onStop()
onStop クラス内 android.support.v4.app.Fragmentpublic void onDestroyView()
onDestroyView クラス内 android.support.v4.app.Fragmentpublic void onDestroy()
onDestroy クラス内 android.support.v4.app.Fragmentpublic void onSaveInstanceState(android.os.Bundle outState)
onSaveInstanceState クラス内 android.support.v4.app.Fragmentpublic void onActivityResult(int requestCode,
int resultCode,
android.content.Intent data)
onActivityResult クラス内 android.support.v4.app.Fragmentpublic android.preference.PreferenceManager getPreferenceManager()
PreferenceManager used by this fragment.PreferenceManager.public void setPreferenceScreen(android.preference.PreferenceScreen preferenceScreen)
preferenceScreen - The root PreferenceScreen of the preference hierarchy.public android.preference.PreferenceScreen getPreferenceScreen()
PreferenceScreen that is the root of the preference
hierarchy.public void addPreferencesFromIntent(android.content.Intent intent)
Intent.intent - The Intent to query activities.public void addPreferencesFromResource(int preferencesResId)
preferencesResId - The XML resource ID to inflate.public boolean onPreferenceTreeClick(android.preference.PreferenceScreen preferenceScreen,
android.preference.Preference preference)
PreferenceScreen has been clicked.preferenceScreen - The PreferenceScreen that the
preference is located in.preference - The preference that was clicked.public android.preference.Preference findPreference(java.lang.CharSequence key)
Preference based on its key.key - The key of the preference to retrieve.Preference with the key, or null.PreferenceGroup.findPreference(CharSequence)public android.widget.ListView getListView()