DeweyPopupPanel

abstract class DeweyPopupPanel : BottomSheetDialogFragment, DeweyPopupInterface

Dewey's implementation of a popup panel, which are typically covering nearly the entire screen.

The popup panel by default has a drag handle and a navigation bar on the top. The drag handle can be shown or hidden by calling setIsDragHandleVisible. The navigation bar can be customized by calling setNavigationMenuResId and setOnMenuItemClickListener. For the navigation bar, the default menu resource is R.menu.dewey_popup_panel_default_menu, which contains a close button with the ID android.R.id.closeButton.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun dismiss()
Link copied to clipboard
Link copied to clipboard
open override fun isShowing(): Boolean
Link copied to clipboard
open override fun onConfigurationChanged(newConfig: Configuration)
Link copied to clipboard
open override fun onCreate(savedInstanceState: Bundle?)
Link copied to clipboard
abstract fun onCreateContentView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?

Override this method to provide the content view of the popup panel, which will be displayed below the navigation bar.

Link copied to clipboard
open override fun onCreateDialog(savedInstanceState: Bundle?): Dialog
Link copied to clipboard
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View
Link copied to clipboard
open override fun onSaveInstanceState(outState: Bundle)
Link copied to clipboard
open override fun onStart()
Link copied to clipboard
open override fun onViewCreated(view: View, savedInstanceState: Bundle?)
Link copied to clipboard
Link copied to clipboard
fun setIsCanceledOnTouchOutside(isCanceledOnTouchOutside: Boolean)
Link copied to clipboard
fun setIsDraggable(isDraggable: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun setWindowFocusAccessibilityText(charSequence: CharSequence)

Set the message that will be read by the screen reader when the popup container gets focus. This could be used to provide additional context to the user about the popup when it is firstly showing on the screen.

Link copied to clipboard
open override fun show()