Class DynamicSizeDialog
java.lang.Object
androidx.fragment.app.Fragment
androidx.fragment.app.DialogFragment
androidx.appcompat.app.AppCompatDialogFragment
com.pranavpandey.android.dynamic.support.dialog.fragment.DynamicDialogFragment
com.pranavpandey.android.dynamic.support.dialog.fragment.DynamicSliderDialog
com.pranavpandey.android.dynamic.support.dialog.fragment.DynamicSizeDialog
- All Implemented Interfaces:
ComponentCallbacks
,DialogInterface.OnCancelListener
,DialogInterface.OnDismissListener
,SharedPreferences.OnSharedPreferenceChangeListener
,View.OnClickListener
,View.OnCreateContextMenuListener
,ActivityResultCaller
,HasDefaultViewModelProviderFactory
,LifecycleOwner
,ViewModelStoreOwner
,androidx.savedstate.SavedStateRegistryOwner
,DynamicProductFlavor
A
DynamicSliderPreference
to provide size picker functionality
via DynamicSliderDialog
.-
Nested Class Summary
Nested classes/interfaces inherited from class androidx.fragment.app.Fragment
Fragment.InstantiationException, Fragment.SavedState
-
Field Summary
Fields inherited from class com.pranavpandey.android.dynamic.support.dialog.fragment.DynamicDialogFragment
ADS_DEFAULT_BUTTON_COLOR
Fields inherited from class androidx.fragment.app.DialogFragment
STYLE_NO_FRAME, STYLE_NO_INPUT, STYLE_NO_TITLE, STYLE_NORMAL
Fields inherited from class androidx.fragment.app.Fragment
mPreviousWho
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the layout resource for this dialog.static DynamicSizeDialog
Initialize the new instance of this fragment.void
protected DynamicDialog.Builder
onCustomiseBuilder
(DynamicDialog.Builder dialogBuilder, Bundle savedInstanceState) Override this method to customise the dynamic dialog builder before creating the dialog.protected void
onCustomiseDialog
(DynamicDialog alertDialog, View view, Bundle savedInstanceState) Override this method to customise the dynamic dialog before attaching it with this fragment.void
showDialog
(FragmentActivity fragmentActivity) Show this dialog fragment and attach it to the supplied activity.Methods inherited from class com.pranavpandey.android.dynamic.support.dialog.fragment.DynamicSliderDialog
getIcon, getInterval, getMax, getMin, getOnSliderChangeListener, getProgressFromValue, getSliderPreference, getSummary, getTitle, getUnit, getValue, getValueFromProgress, getValueListener, onSaveInstanceState, setIcon, setInterval, setMax, setMin, setOnSliderChangeListener, setSummary, setTitle, setUnit, setValue, setValue, setValueListener
Methods inherited from class com.pranavpandey.android.dynamic.support.dialog.fragment.DynamicDialogFragment
finishActivity, getBooleanFromArguments, getBuilder, getButtonColor, getDynamicDialog, getNegativeButtonText, getNeutralButtonText, getOnCancelListener, getOnDismissListener, getOnKeyListener, getOnShowListener, getParcelableFromArguments, getPositiveButtonText, getProductFlavor, getStringFromArguments, isAutoDismiss, isCancelable, isOnSharedPreferenceChangeListener, onCancel, onCreate, onCreateDialog, onDestroyView, onDismiss, onPause, onResume, onSharedPreferenceChanged, setAutoDismiss, setBuilder, setButtonColor, setIsCancelable, setNegativeButtonText, setNeutralButtonText, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setPositiveButtonText, setResult, setResult, setResult, setResult, showDialog
Methods inherited from class androidx.appcompat.app.AppCompatDialogFragment
setupDialog
Methods inherited from class androidx.fragment.app.DialogFragment
dismiss, dismissAllowingStateLoss, dismissNow, getDialog, getShowsDialog, getTheme, onActivityCreated, onAttach, onDetach, onGetLayoutInflater, onStart, onStop, onViewStateRestored, requireComponentDialog, requireDialog, setCancelable, setShowsDialog, setStyle, show, show, showNow
Methods inherited from class androidx.fragment.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelCreationExtras, 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, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onViewCreated, postponeEnterTransition, postponeEnterTransition, registerForActivityResult, registerForActivityResult, 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
-
Field Details
-
TAG
Tag for this dialog fragment.- See Also:
-
-
Constructor Details
-
DynamicSizeDialog
public DynamicSizeDialog()
-
-
Method Details
-
newInstance
Initialize the new instance of this fragment.- Returns:
- An instance of
DynamicSizeDialog
.
-
getLayoutRes
Description copied from class:DynamicDialogFragment
Returns the layout resource for this dialog.- Overrides:
getLayoutRes
in classDynamicSliderDialog
- Returns:
- The layout resource for this dialog.
-
showDialog
Description copied from class:DynamicDialogFragment
Show this dialog fragment and attach it to the supplied activity.- Overrides:
showDialog
in classDynamicSliderDialog
- Parameters:
fragmentActivity
- The fragment activity to attach this dialog fragment.
-
onClick
- Specified by:
onClick
in interfaceView.OnClickListener
-