public abstract class InputMethodSettingsFragment extends PreferenceFragment implements InputMethodSettingsInterface
PreferenceFragment.OnPreferenceStartFragmentCallback
Fragment.InstantiationException, Fragment.SavedState
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
Constructor and Description |
---|
InputMethodSettingsFragment() |
Modifier and Type | Method and Description |
---|---|
void |
onCreate(Bundle savedInstanceState)
Called to do initial creation of a fragment.
|
void |
onResume()
Called when the fragment is visible to the user and actively running.
|
void |
setInputMethodSettingsCategoryTitle(CharSequence title)
Sets the title for the input method settings category with a CharSequence.
|
void |
setInputMethodSettingsCategoryTitle(int resId)
Sets the title for the input method settings category with a resource ID.
|
void |
setSubtypeEnablerIcon(Drawable drawable)
Sets the icon for the Preference for launching subtype enabler with a Drawable.
|
void |
setSubtypeEnablerIcon(int resId)
Sets the icon for the preference for launching subtype enabler with a resource ID.
|
void |
setSubtypeEnablerTitle(CharSequence title)
Sets the title for the input method enabler preference for launching subtype enabler with a
CharSequence.
|
void |
setSubtypeEnablerTitle(int resId)
Sets the title for the input method enabler preference for launching subtype enabler with a
resource ID.
|
addPreferencesFromIntent, addPreferencesFromResource, findPreference, getListView, getPreferenceManager, getPreferenceScreen, hasListView, onActivityCreated, onActivityResult, onBindPreferences, onCreateView, onDestroy, onDestroyView, onPreferenceTreeClick, onSaveInstanceState, onStart, onStop, onUnbindPreferences, onViewCreated, setPreferenceScreen
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDetach, onHiddenChanged, onInflate, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onTrimMemory, onViewStateRestored, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterSharedElementTransitionCallback, setEnterTransition, setExitSharedElementCallback, setExitSharedElementTransitionCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, toString, unregisterForContextMenu
public void onCreate(Bundle savedInstanceState)
Fragment
Fragment.onAttach(Activity)
and before
Fragment.onCreateView(LayoutInflater, ViewGroup, Bundle)
, but is not called if the fragment
instance is retained across Activity re-creation (see Fragment.setRetainInstance(boolean)
).
Note that this can be called while the fragment's activity is
still in the process of being created. As such, you can not rely
on things like the activity's content view hierarchy being initialized
at this point. If you want to do work once the activity itself is
created, see Fragment.onActivityCreated(Bundle)
.
If your app's targetSdkVersion
is Build.VERSION_CODES.M
or lower, child fragments being restored from the savedInstanceState are restored after
onCreate
returns. When targeting Build.VERSION_CODES.N
or
above and running on an N or newer platform version
they are restored by Fragment.onCreate
.
onCreate
in class PreferenceFragment
savedInstanceState
- If the fragment is being re-created from
a previous saved state, this is the state.public void setInputMethodSettingsCategoryTitle(int resId)
setInputMethodSettingsCategoryTitle
in interface InputMethodSettingsInterface
resId
- The resource ID of the title.public void setInputMethodSettingsCategoryTitle(CharSequence title)
setInputMethodSettingsCategoryTitle
in interface InputMethodSettingsInterface
title
- The title for this preference.public void setSubtypeEnablerTitle(int resId)
setSubtypeEnablerTitle
in interface InputMethodSettingsInterface
resId
- The resource ID of the title.public void setSubtypeEnablerTitle(CharSequence title)
setSubtypeEnablerTitle
in interface InputMethodSettingsInterface
title
- The title for this preference.public void setSubtypeEnablerIcon(int resId)
setSubtypeEnablerIcon
in interface InputMethodSettingsInterface
resId
- The resource id of an optional icon for the preference.public void setSubtypeEnablerIcon(Drawable drawable)
setSubtypeEnablerIcon
in interface InputMethodSettingsInterface
drawable
- The drawable of an optional icon for the preference.public void onResume()
Activity.onResume
of the containing
Activity's lifecycle.