Class ScaleSelectFragment
- java.lang.Object
-
- androidx.fragment.app.Fragment
-
- edu.cnm.deepdive.scalescroller.controller.ScaleSelectFragment
-
- All Implemented Interfaces:
ComponentCallbacks
,View.OnCreateContextMenuListener
,HasDefaultViewModelProviderFactory
,LifecycleOwner
,ViewModelStoreOwner
,SavedStateRegistryOwner
public class ScaleSelectFragment extends Fragment
Allows the user to select a scale from a RecyclerView for Learn mode.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class androidx.fragment.app.Fragment
Fragment.InstantiationException, Fragment.SavedState
-
-
Constructor Summary
Constructors Constructor Description ScaleSelectFragment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description View
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
Sets up navigation.void
onViewCreated(View view, Bundle savedInstanceState)
Creates a recycler view containing the scales in the database, with scales the user cannot select displayed as grayed-out.-
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, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDestroyView, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, 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
-
onCreateView
@Nullable public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState)
Sets up navigation.- Overrides:
onCreateView
in classFragment
- Parameters:
inflater
- ALayoutInflater
.container
- AViewGroup
.savedInstanceState
- ABundle
.- Returns:
- A
View
.
-
onViewCreated
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState)
Creates a recycler view containing the scales in the database, with scales the user cannot select displayed as grayed-out.- Overrides:
onViewCreated
in classFragment
- Parameters:
view
- AView
object.savedInstanceState
- ABundle
-
-