Package icyllis.modernui
Class TestFragment.FragmentB
java.lang.Object
icyllis.modernui.fragment.Fragment
icyllis.modernui.TestFragment.FragmentB
- All Implemented Interfaces:
- LifecycleOwner,- ViewModelStoreOwner,- View.OnCreateContextMenuListener
- Enclosing class:
- TestFragment
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiononCreateView(LayoutInflater inflater, ViewGroup container, DataSet savedInstanceState) Called to have the fragment instantiate its user interface view.voidCalled when the fragment is no longer in use.Methods inherited from class icyllis.modernui.fragment.Fragmentdump, equals, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getHost, getId, getLifecycle, getParentFragment, getParentFragmentManager, getReenterTransition, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getTag, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isStateSaved, isVisible, onAttach, onCreate, onCreateAnimator, onCreateAnimator, onCreateContextMenu, onDestroyView, onDetach, onHiddenChanged, onPause, onPrimaryNavigationFragmentChanged, onResume, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, postponeEnterTransition, postponeEnterTransition, registerForContextMenu, requireArguments, requireContext, requireHost, requireParentFragment, requireView, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, startPostponedEnterTransition, toString, unregisterForContextMenu
- 
Constructor Details- 
FragmentBpublic FragmentB()
 
- 
- 
Method Details- 
onCreateView@Nullable public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable DataSet savedInstanceState) Description copied from class:FragmentCalled to have the fragment instantiate its user interface view. This is optional, and non-graphical fragments can return null. This will be called betweenFragment.onCreate(DataSet)andFragment.onViewCreated(View, DataSet).It is recommended to only inflate the layout in this method and move logic that operates on the returned View to Fragment.onViewCreated(View, DataSet).If you return a View from here, you will later be called in Fragment.onDestroyView()when the view is being released.- Overrides:
- onCreateViewin class- Fragment
- Parameters:
- 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.
- Returns:
- Return the View for the fragment's UI, or null.
 
- 
onDestroypublic void onDestroy()Description copied from class:FragmentCalled when the fragment is no longer in use. This is called afterFragment.onStop()and beforeFragment.onDetach().
 
-