Class AudioSettingsFragment
- java.lang.Object
-
- androidx.fragment.app.Fragment
-
- androidx.preference.PreferenceFragmentCompat
-
- edu.cnm.deepdive.scalescroller.controller.AudioSettingsFragment
-
- All Implemented Interfaces:
ComponentCallbacks
,View.OnCreateContextMenuListener
,HasDefaultViewModelProviderFactory
,LifecycleOwner
,ViewModelStoreOwner
,DialogPreference.TargetFragment
,PreferenceManager.OnDisplayPreferenceDialogListener
,PreferenceManager.OnNavigateToScreenListener
,PreferenceManager.OnPreferenceTreeClickListener
,SavedStateRegistryOwner
public class AudioSettingsFragment extends PreferenceFragmentCompat
A preference fragment for audio settings, with a custom style and a button.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class androidx.preference.PreferenceFragmentCompat
PreferenceFragmentCompat.OnPreferenceDisplayDialogCallback, PreferenceFragmentCompat.OnPreferenceStartFragmentCallback, PreferenceFragmentCompat.OnPreferenceStartScreenCallback
-
Nested classes/interfaces inherited from class androidx.fragment.app.Fragment
Fragment.InstantiationException, Fragment.SavedState
-
-
Field Summary
-
Fields inherited from class androidx.preference.PreferenceFragmentCompat
ARG_PREFERENCE_ROOT
-
-
Constructor Summary
Constructors Constructor Description AudioSettingsFragment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCreate(Bundle savedInstanceState)
Overrides onCreate to apply a preferences-specific style.void
onCreatePreferences(Bundle savedInstanceState, String rootKey)
Overrides onCreatePreferences to set the preferences from a resource file and to set up a click listener on a back button.-
Methods inherited from class androidx.preference.PreferenceFragmentCompat
addPreferencesFromResource, findPreference, getCallbackFragment, getListView, getPreferenceManager, getPreferenceScreen, onBindPreferences, onCreateAdapter, onCreateLayoutManager, onCreateRecyclerView, onCreateView, onDestroyView, onDisplayPreferenceDialog, onNavigateToScreen, onPreferenceTreeClick, onSaveInstanceState, onStart, onStop, onUnbindPreferences, onViewCreated, scrollToPreference, scrollToPreference, setDivider, setDividerHeight, setPreferenceScreen, setPreferencesFromResource
-
Methods inherited from class androidx.fragment.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, onViewStateRestored, postponeEnterTransition, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
-
-
-
-
Method Detail
-
onCreate
public void onCreate(@Nullable Bundle savedInstanceState)
Overrides onCreate to apply a preferences-specific style.- Overrides:
onCreate
in classPreferenceFragmentCompat
- Parameters:
savedInstanceState
- A Bundle.
-
onCreatePreferences
public void onCreatePreferences(Bundle savedInstanceState, String rootKey)
Overrides onCreatePreferences to set the preferences from a resource file and to set up a click listener on a back button.- Specified by:
onCreatePreferences
in classPreferenceFragmentCompat
- Parameters:
savedInstanceState
- A Bundle.rootKey
- A String.
-
-