Since: API Level 1
package

android.view

Classes | Description

Provides classes that expose basic user interface classes that handle screen layout and interaction with the user.

more...

Interfaces

ContextMenuExtension of Menu for context menus providing functionality to modify the header of the context menu. 
ContextMenu.ContextMenuInfoAdditional information regarding the creation of the context menu. 
GestureDetector.OnDoubleTapListenerThe listener that is used to notify when a double-tap or a confirmed single-tap occur. 
GestureDetector.OnGestureListenerThe listener that is used to notify when gestures occur. 
InputQueue.CallbackInterface to receive notification of when an InputQueue is associated and dissociated with a thread. 
KeyEvent.Callback 
LayoutInflater.Factory 
LayoutInflater.FilterHook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated. 
MenuInterface for managing the items in a menu. 
MenuItemInterface for direct access to a previously created menu item. 
MenuItem.OnMenuItemClickListenerInterface definition for a callback to be invoked when a menu item is clicked. 
ScaleGestureDetector.OnScaleGestureListenerThe listener for receiving notifications when gestures occur. 
SubMenuSubclass of Menu for sub menus. 
SurfaceHolderAbstract interface to someone holding a display surface. 
SurfaceHolder.CallbackA client may implement this interface to receive information about changes to the surface. 
SurfaceHolder.Callback2Additional callbacks that can be received for SurfaceHolder.Callback
View.OnClickListenerInterface definition for a callback to be invoked when a view is clicked. 
View.OnCreateContextMenuListenerInterface definition for a callback to be invoked when the context menu for this view is being built. 
View.OnFocusChangeListenerInterface definition for a callback to be invoked when the focus state of a view changed. 
View.OnKeyListenerInterface definition for a callback to be invoked when a key event is dispatched to this view. 
View.OnLongClickListenerInterface definition for a callback to be invoked when a view has been clicked and held. 
View.OnTouchListenerInterface definition for a callback to be invoked when a touch event is dispatched to this view. 
ViewGroup.OnHierarchyChangeListenerInterface definition for a callback to be invoked when the hierarchy within this view changed. 
ViewManagerInterface to let you add and remove child views to an Activity. 
ViewParentDefines the responsibilities for a class that will be a parent of a View. 
ViewStub.OnInflateListenerListener used to receive a notification after a ViewStub has successfully inflated its layout resource. 
ViewTreeObserver.OnGlobalFocusChangeListenerInterface definition for a callback to be invoked when the focus state within the view tree changes. 
ViewTreeObserver.OnGlobalLayoutListenerInterface definition for a callback to be invoked when the global layout state or the visibility of views within the view tree changes. 
ViewTreeObserver.OnPreDrawListenerInterface definition for a callback to be invoked when the view tree is about to be drawn. 
ViewTreeObserver.OnScrollChangedListenerInterface definition for a callback to be invoked when something in the view tree has been scrolled. 
ViewTreeObserver.OnTouchModeChangeListenerInterface definition for a callback to be invoked when the touch mode changes. 
Window.CallbackAPI from a Window back to its caller. 
WindowManagerThe interface that apps use to talk to the window manager. 

Classes

AbsSavedStateA Parcelable implementation that should be used by inheritance hierarchies to ensure the state of all classes along the chain is saved. 
ContextThemeWrapperA ContextWrapper that allows you to modify the theme from what is in the wrapped context. 
Display 
FocusFinderThe algorithm used for finding the next focusable view in a given direction from a view that currently has focus. 
GestureDetectorDetects various gestures and events using the supplied MotionEvents. 
GestureDetector.SimpleOnGestureListenerA convenience class to extend when you only want to listen for a subset of all the gestures. 
GravityStandard constants and tools for placing an object within a potentially larger container. 
HapticFeedbackConstantsConstants to be used to perform haptic feedback effects via performHapticFeedback(int)  
InputDeviceDescribes the capabilities of a particular input device. 
InputDevice.MotionRangeProvides information about the range of values for a particular MotionEvent coordinate. 
InputEventCommon base class for input events. 
InputQueueAn input queue provides a mechanism for an application to receive incoming input events. 
KeyCharacterMapDescribes the keys provided by a device and their associated labels. 
KeyCharacterMap.KeyData 
KeyEventObject used to report key and button events. 
KeyEvent.DispatcherStateUse with dispatch(Callback, DispatcherState, Object) for more advanced key dispatching, such as long presses. 
LayoutInflaterThis class is used to instantiate layout XML file into its corresponding View objects. 
MenuInflaterThis class is used to instantiate menu XML files into Menu objects. 
MotionEventObject used to report movement (mouse, pen, finger, trackball) events. 
MotionEvent.PointerCoordsTransfer object for pointer coordinates. 
OrientationEventListenerHelper class for receiving notifications from the SensorManager when the orientation of the device has changed. 
OrientationListener This class is deprecated. use OrientationEventListener instead. This class internally uses the OrientationEventListener.  
ScaleGestureDetectorDetects transformation gestures involving more than one pointer ("multitouch") using the supplied MotionEvents. 
ScaleGestureDetector.SimpleOnScaleGestureListenerA convenience class to extend when you only want to listen for a subset of scaling-related events. 
SoundEffectConstantsConstants to be used to play sound effects via playSoundEffect(int)  
SurfaceHandle on to a raw buffer that is being managed by the screen compositor. 
SurfaceViewProvides a dedicated drawing surface embedded inside of a view hierarchy. 
TouchDelegateHelper class to handle situations where you want a view to have a larger touch area than its actual view bounds. 
VelocityTrackerHelper for tracking the velocity of touch events, for implementing flinging and other such gestures. 
View

This class represents the basic building block for user interface components. 

View.BaseSavedStateBase class for derived classes that want to save and restore their own state in onSaveInstanceState()
View.MeasureSpecA MeasureSpec encapsulates the layout requirements passed from parent to child. 
ViewConfigurationContains methods to standard constants used in the UI for timeouts, sizes, and distances. 
ViewDebugVarious debugging/tracing tools related to View and the view hierarchy. 
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.LayoutParamsLayoutParams are used by views to tell their parents how they want to be laid out. 
ViewGroup.MarginLayoutParamsPer-child layout information for layouts that support margins. 
ViewStubA ViewStub is an invisible, zero-sized View that can be used to lazily inflate layout resources at runtime. 
ViewTreeObserverA view tree observer is used to register listeners that can be notified of global changes in the view tree. 
WindowAbstract base class for a top-level window look and behavior policy. 
WindowManager.LayoutParams 

Enums

ViewDebug.HierarchyTraceTypeDefines the type of hierarhcy trace to output to the hierarchy traces file. 
ViewDebug.RecyclerTraceTypeDefines the type of recycler trace to output to the recycler traces file. 

Exceptions

InflateExceptionThis exception is thrown by an inflater on error conditions. 
Surface.OutOfResourcesExceptionException thrown when a surface couldn't be created or resized  
SurfaceHolder.BadSurfaceTypeExceptionException that is thrown from lockCanvas() when called on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS. 
WindowManager.BadTokenExceptionException that is thrown when trying to add view whose WindowManager.LayoutParams token is invalid.