Package eltos.simpledialogfragment.color
Klasse SimpleColorWheelDialog
java.lang.Object
androidx.fragment.app.Fragment
androidx.fragment.app.DialogFragment
eltos.simpledialogfragment.SimpleDialog<SimpleColorWheelDialog>
eltos.simpledialogfragment.CustomViewDialog<SimpleColorWheelDialog>
eltos.simpledialogfragment.color.SimpleColorWheelDialog
- Alle implementierten Schnittstellen:
android.content.ComponentCallbacks
,android.content.DialogInterface.OnCancelListener
,android.content.DialogInterface.OnDismissListener
,android.view.View.OnCreateContextMenuListener
,androidx.activity.result.ActivityResultCaller
,androidx.lifecycle.HasDefaultViewModelProviderFactory
,androidx.lifecycle.LifecycleOwner
,androidx.lifecycle.ViewModelStoreOwner
,androidx.savedstate.SavedStateRegistryOwner
A dialog with a color wheel to pick a custom color. Supports transparency
Result: COLOR int Selected color (argb)
Created by eltos on 04.02.2017.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen eltos.simpledialogfragment.SimpleDialog
SimpleDialog.OnDialogResultListener
Von Klasse geerbte verschachtelte Klassen/Schnittstellen androidx.fragment.app.Fragment
androidx.fragment.app.Fragment.InstantiationException, androidx.fragment.app.Fragment.SavedState
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected static final String
static final String
static final String
Von Klasse geerbte Felder eltos.simpledialogfragment.SimpleDialog
BUNDLE, CANCELABLE, FULLSCREEN, HTML, ICON_RESOURCE, MESSAGE, NEGATIVE_BUTTON_TEXT, NEUTRAL_BUTTON_TEXT, POSITIVE_BUTTON_TEXT, THEME, TITLE
Von Klasse geerbte Felder androidx.fragment.app.DialogFragment
STYLE_NO_FRAME, STYLE_NO_INPUT, STYLE_NO_TITLE, STYLE_NORMAL
Von Klasse geerbte Felder androidx.fragment.app.Fragment
mPreviousWho
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungalpha
(boolean enabled) Specifies whether a seek bar for transparency control is displayedstatic SimpleColorWheelDialog
build()
color
(int color) Specifies the initial color of the color wheelhideHexInput
(boolean enabled) Method to hide the input field for color hex codeprotected android.view.View
onCreateContentView
(android.os.Bundle savedInstanceState) Inflate your custom view here.protected android.os.Bundle
onResult
(int which) Overwrite this method to provide additional results from your custom view to be passed to theSimpleDialog.OnDialogResultListener.onResult(java.lang.String, int, android.os.Bundle)
Von Klasse geerbte Methoden eltos.simpledialogfragment.CustomViewDialog
acceptsPositiveButtonPress, callResultListener, extractContentView, inflate, inflate, onCreate, onCreateDialog, onDialogShown, onNegativeButtonClick, onNeutralButtonClick, onPositiveButtonClick, pressPositiveButton, setNegativeButtonEnabled, setNeutralButtonEnabled, setPositiveButtonEnabled
Von Klasse geerbte Methoden eltos.simpledialogfragment.SimpleDialog
cancelable, extra, fullscreen, fullscreen, getArgs, getArgString, getContext, getExtras, getMessage, getTitle, icon, isCancelable, msg, msg, msgHtml, msgHtml, neg, neg, neg, neut, neut, neut, onCancel, onDestroyView, pos, pos, setArg, setArg, setArg, setArg, setButtonClickListener, setButtonEnabled, show, show, show, show, show, show, show, show, showKeyboard, theme, title, title
Von Klasse geerbte Methoden androidx.fragment.app.DialogFragment
dismiss, dismissAllowingStateLoss, dismissNow, getDialog, getShowsDialog, getTheme, onActivityCreated, onAttach, onDetach, onDismiss, onGetLayoutInflater, onSaveInstanceState, onStart, onStop, onViewStateRestored, requireDialog, setCancelable, setShowsDialog, setStyle, setupDialog, showNow
Von Klasse geerbte Methoden androidx.fragment.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, 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, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, 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
-
Felddetails
-
TAG
- Siehe auch:
-
COLOR
- Siehe auch:
-
ALPHA
- Siehe auch:
-
-
Konstruktordetails
-
SimpleColorWheelDialog
public SimpleColorWheelDialog()
-
-
Methodendetails
-
build
-
color
Specifies the initial color of the color wheel- Parameter:
color
- the initial color (argb)- Gibt zurück:
- this instance
-
alpha
Specifies whether a seek bar for transparency control is displayed- Parameter:
enabled
- whether or not to allow transparency (alpha) adjustment- Gibt zurück:
- this instance
-
hideHexInput
Method to hide the input field for color hex code- Parameter:
enabled
- whether or not to hide the input field- Gibt zurück:
- this instance
-
onCreateContentView
protected android.view.View onCreateContentView(android.os.Bundle savedInstanceState) Beschreibung aus Klasse kopiert:CustomViewDialog
Inflate your custom view here.- Angegeben von:
onCreateContentView
in KlasseCustomViewDialog<SimpleColorWheelDialog>
- Parameter:
savedInstanceState
- The last saved instance state of the Fragment, or null if this fragment is created for the first time.- Gibt zurück:
- Return a new View to be displayed by the Fragment.
-
onResult
protected android.os.Bundle onResult(int which) Beschreibung aus Klasse kopiert:CustomViewDialog
Overwrite this method to provide additional results from your custom view to be passed to theSimpleDialog.OnDialogResultListener.onResult(java.lang.String, int, android.os.Bundle)
- Setzt außer Kraft:
onResult
in KlasseCustomViewDialog<SimpleColorWheelDialog>
- Parameter:
which
- seeSimpleDialog.OnDialogResultListener
- Gibt zurück:
- the bundle to merge with the results or null
-