Package icyllis.modernui.view
package icyllis.modernui.view
Provides classes that expose basic user interface classes that
handle screen layout and interaction with the user.
-
ClassDescriptionRepresents a contextual mode of the user interface.Callback interface for action modes.An ActionProvider defines rich menu interaction in a single component.Listens to changes in visibility as reported by
ActionProvider.refreshVisibility()
.Extension ofMenu
for context menus providing functionality to modify the header of the context menu.Additional information regarding the creation of the context menu.A drag and drop operationThe algorithm used for finding the next focusable view in a given direction from a view that currently has focus.Standard constants and tools for placing an object within a potentially larger container.Class used to enqueue pending work from Views when no Window is attached.Constants to be used to perform haptic feedback effects viaView.performHapticFeedback(int)
The base class of input events.Object that reports key events (keyboard etc.).A MeasureSpec encapsulates the layout requirements passed from parent to child.Interface for managing the items in a menu.Interface for direct access to a previously created menu item.Interface definition for a callback to be invoked when a menu item marked withMenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW
is expanded or collapsed.Interface definition for a callback to be invoked when a menu item is clicked.Object that indicates movement events (mouse, touchpad etc.).An OnPreDrawListener that will remove itself after one OnPreDraw call.Represents an icon that can be used as a mouse pointer.Constants to be used to play sound effects viaView.playSoundEffect(int)
Subclass ofMenu
for sub menus.Helper for tracking the velocity of touch events, for implementing flinging and other such gestures.An estimator for the movements of a pointer based on a polynomial model.Implements a particular velocity tracker algorithm.This class represents the basic building block for user interface components.Creates an image that the system displays during the drag and drop operation.Interface definition for a callback to be invoked when this view is attached or detached from its window.Interface definition for a callback to be invoked when a view is clicked.Interface definition for a callback to be invoked when a view is context clicked.Interface definition for a callback to be invoked when the context menu for this view is being built.Interface definition for a callback to be invoked when a drag is being dispatched to this view.Interface definition for a callback to be invoked when the focus state of a view changed.Interface definition for a callback to be invoked when a generic motion event is dispatched to this view.Interface definition for a callback to be invoked when a hover event is dispatched to this view.Interface definition for a callback to be invoked when a hardware key event is dispatched to this view.Interface definition for a callback to be invoked when the layout bounds of a view changes due to layout processing.Interface definition for a callback to be invoked when a view has been clicked and held.Interface definition for a callback to be invoked when the scroll X or Y positions of a view change.Interface definition for a callback to be invoked when a touch event is dispatched to this view.Contains methods to standard constants used in the UI for timeouts, sizes, and distances.AViewGroup
is a special view that can contain other views (called children.) The view group is the base class for layouts and views containers.LayoutParams are used by views to tell their parents how they want to be laid out.Per-child layout information for layouts that support margins.Interface for adding/removing child views to/from a view hierarchy.Defines an object that can work as a parent of a View.The top of a view hierarchy, implementing the needed protocol between View and the Window.A view tree observer is used to register listeners that can be notified of global changes in the view tree.Interface definition for a callback to be invoked when the focus state within the view tree changes.Interface definition for a callback to be invoked when the global layout state or the visibility of views within the view tree changes.Interface definition for a callback to be invoked when the view tree is about to be drawn.Interface definition for a callback to be invoked when something in the view tree has been scrolled.The root view of window view hierarchy, allowing for sub windows (panels), such as menu popups, tooltips and toasts.Interface for adding custom windows to the platform window.