# 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.

- Related Packages
  Package
  Description
  icyllis.modernui
  icyllis.modernui.view.menu
  The internal implementation of `Menu` API and relevant components, controlling the creation and display of menus.
- Class
  Description
  ActionMode
  Represents a contextual mode of the user interface.
  ActionMode.Callback
  Callback interface for action modes.
  ActionProvider
  An ActionProvider defines rich menu interaction in a single component.
  ActionProvider.SubUiVisibilityListener
  ActionProvider.VisibilityListener
  Listens to changes in visibility as reported by `ActionProvider.refreshVisibility()`.
  ContextMenu
  Extension of `Menu` for context menus providing functionality to modify the header of the context menu.
  ContextMenu.ContextMenuInfo
  Additional information regarding the creation of the context menu.
  DragEvent
  A drag and drop operation
  FocusFinder
  The algorithm used for finding the next focusable view in a given direction from a view that currently has focus.
  Gravity
  Standard constants and tools for placing an object within a potentially larger container.
  Gravity.GravityFlags
  HandlerActionQueue
  Class used to enqueue pending work from Views when no Window is attached.
  HapticFeedbackConstants
  Constants to be used to perform haptic feedback effects via `View.performHapticFeedback(int)`
  InputEvent
  The base class of input events.
  KeyEvent
  Object that reports key events (keyboard etc.).
  KeyEvent.DispatcherState
  LayoutInflater
  MeasureSpec
  A MeasureSpec encapsulates the layout requirements passed from parent to child.
  Menu
  Interface for managing the items in a menu.
  MenuItem
  Interface for direct access to a previously created menu item.
  MenuItem.OnActionExpandListener
  Interface definition for a callback to be invoked when a menu item marked with `MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW` is expanded or collapsed.
  MenuItem.OnMenuItemClickListener
  Interface definition for a callback to be invoked when a menu item is clicked.
  MotionEvent
  Object that indicates movement events (mouse, touchpad etc.).
  OneShotPreDrawListener
  An OnPreDrawListener that will remove itself after one OnPreDraw call.
  PointerIcon
  Represents an icon that can be used as a mouse pointer.
  SoundEffectConstants
  Constants to be used to play sound effects via `View.playSoundEffect(int)`
  SubMenu
  Subclass of `Menu` for sub menus.
  TooltipPopup
  VelocityTracker
  Helper for tracking the velocity of touch events, for implementing flinging and other such gestures.
  VelocityTracker.Estimator
  An estimator for the movements of a pointer based on a polynomial model.
  VelocityTracker.ImpulseStrategy
  VelocityTracker.LeastSquaresStrategy
  VelocityTracker.LeastSquaresStrategy.Weighting
  VelocityTracker.Strategy
  Implements a particular velocity tracker algorithm.
  View
  This class represents the basic building block for user interface components.
  View.DragShadow
  Creates an image that the system displays during the drag and drop operation.
  View.Focusable
  View.FocusableMode
  View.FocusDirection
  View.FocusRealDirection
  View.LayoutDir
  View.NestedScrollType
  View.OnAttachStateChangeListener
  Interface definition for a callback to be invoked when this view is attached or detached from its window.
  View.OnClickListener
  Interface definition for a callback to be invoked when a view is clicked.
  View.OnContextClickListener
  Interface definition for a callback to be invoked when a view is context clicked.
  View.OnCreateContextMenuListener
  Interface definition for a callback to be invoked when the context menu for this view is being built.
  View.OnDragListener
  Interface definition for a callback to be invoked when a drag is being dispatched to this view.
  View.OnFocusChangeListener
  Interface definition for a callback to be invoked when the focus state of a view changed.
  View.OnGenericMotionListener
  Interface definition for a callback to be invoked when a generic motion event is dispatched to this view.
  View.OnHoverListener
  Interface definition for a callback to be invoked when a hover event is dispatched to this view.
  View.OnKeyListener
  Interface definition for a callback to be invoked when a hardware key event is dispatched to this view.
  View.OnLayoutChangeListener
  Interface definition for a callback to be invoked when the layout bounds of a view changes due to layout processing.
  View.OnLongClickListener
  Interface definition for a callback to be invoked when a view has been clicked and held.
  View.OnScrollChangeListener
  Interface definition for a callback to be invoked when the scroll X or Y positions of a view change.
  View.OnTouchListener
  Interface definition for a callback to be invoked when a touch event is dispatched to this view.
  View.ResolvedLayoutDir
  View.ScrollAxis
  View.ScrollBarStyle
  View.ScrollIndicators
  View.TextAlignment
  View.Visibility
  ViewConfiguration
  Contains methods to standard constants used in the UI for timeouts, sizes, and distances.
  ViewGroup
  A `ViewGroup` is a special view that can contain other views (called children.) The view group is the base class for layouts and views containers.
  ViewGroup.LayoutParams
  LayoutParams are used by views to tell their parents how they want to be laid out.
  ViewGroup.MarginLayoutParams
  Per-child layout information for layouts that support margins.
  ViewManager
  Interface for adding/removing child views to/from a view hierarchy.
  ViewParent
  Defines an object that can work as a parent of a View.
  ViewRoot
  The top of a view hierarchy, implementing the needed protocol between View and the Window.
  ViewTreeObserver
  A view tree observer is used to register listeners that can be notified of global changes in the view tree.
  ViewTreeObserver.OnGlobalFocusChangeListener
  Interface definition for a callback to be invoked when the focus state within the view tree changes.
  ViewTreeObserver.OnGlobalLayoutListener
  Interface definition for a callback to be invoked when the global layout state or the visibility of views within the view tree changes.
  ViewTreeObserver.OnPreDrawListener
  Interface definition for a callback to be invoked when the view tree is about to be drawn.
  ViewTreeObserver.OnScrollChangedListener
  Interface definition for a callback to be invoked when something in the view tree has been scrolled.
  VirtualWindowViewRoot
  WindowGroup
  The root view of window view hierarchy, allowing for sub windows (panels), such as menu popups, tooltips and toasts.
  WindowManager
  Interface for adding custom windows to the platform window.
  WindowManager.LayoutParams