Package ai.nexconn.chatui.widget
Class ReferenceDialog
-
- All Implemented Interfaces:
-
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
public class ReferenceDialog extends BaseDialogFragment
-
-
Field Summary
Fields Modifier and Type Field Description protected ViewmRootViewprotected DialogmDialogpublic final static intSTYLE_NORMALpublic final static intSTYLE_NO_TITLEpublic final static intSTYLE_NO_FRAMEpublic final static intSTYLE_NO_INPUT
-
Constructor Summary
Constructors Constructor Description ReferenceDialog(UiMessage uiMessage)
-
Method Summary
Modifier and Type Method Description voidfindView()voidinitView()voidonAttach(@NonNull() Context context)voidonDetach()voidbindData()voidsetText(SpannableStringBuilder span)intgetContentView()floatgetScreenWidthProportion()Screen proportion intgetScreenHeightProportion()intgetBackgroundDrawableRes()-
Methods inherited from class ai.nexconn.chatui.picture.widget.BaseDialogFragment
getGravity, getHorizontalMovement, getVerticalMovement, onActivityCreated, onCreate, onCreateView, show -
Methods inherited from class androidx.fragment.app.DialogFragment
dismiss, dismissAllowingStateLoss, getDialog, getShowsDialog, getTheme, isCancelable, onCancel, onCreate, onCreateDialog, onDestroyView, onDismiss, onGetLayoutInflater, onSaveInstanceState, onStart, onStop, onViewStateRestored, requireDialog, setCancelable, setShowsDialog, setStyle, setupDialog, show, show, showNow -
Methods inherited from class androidx.fragment.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hasOptionsMenu, hashCode, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, onViewCreated, postponeEnterTransition, 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, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu -
Methods inherited from class androidx.lifecycle.HasDefaultViewModelProviderFactory
getDefaultViewModelCreationExtras -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ReferenceDialog
ReferenceDialog(UiMessage uiMessage)
-
-
Method Detail
-
findView
void findView()
-
initView
void initView()
-
onAttach
void onAttach(@NonNull() Context context)
-
onDetach
void onDetach()
-
bindData
void bindData()
-
setText
void setText(SpannableStringBuilder span)
-
getContentView
int getContentView()
-
getScreenWidthProportion
float getScreenWidthProportion()
Screen proportion
- Returns:
the width proportion of the screen
-
getScreenHeightProportion
int getScreenHeightProportion()
- Returns:
the height proportion of the screen
-
getBackgroundDrawableRes
int getBackgroundDrawableRes()
-
-
-
-