Android 2.3 Gingerbread

Package android.view

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

See:
          Description

Interface Summary
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.
GestureDetector.OnDoubleTapListener The listener that is used to notify when a double-tap or a confirmed single-tap occur.
GestureDetector.OnGestureListener The listener that is used to notify when gestures occur.
InputHandler Handles input messages that arrive on an input channel.
InputQueue.Callback Interface to receive notification of when an InputQueue is associated and dissociated with a thread.
KeyEvent.Callback  
LayoutInflater.Factory  
LayoutInflater.Filter Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.
Menu Interface for managing the items in a menu.
MenuItem Interface for direct access to a previously created menu item.
MenuItem.OnMenuItemClickListener Interface definition for a callback to be invoked when a menu item is clicked.
ScaleGestureDetector.OnScaleGestureListener The listener for receiving notifications when gestures occur.
SubMenu Subclass of Menu for sub menus.
SurfaceHolder Abstract interface to someone holding a display surface.
SurfaceHolder.Callback A client may implement this interface to receive information about changes to the surface.
SurfaceHolder.Callback2 Additional callbacks that can be received for SurfaceHolder.Callback.
View.AttachInfo.Callbacks  
View.OnClickListener Interface definition for a callback to be invoked when a view is clicked.
View.OnCreateContextMenuListener Interface definition for a callback to be invoked when the context menu for this view is being built.
View.OnFocusChangeListener Interface definition for a callback to be invoked when the focus state of a view changed.
View.OnKeyListener Interface definition for a callback to be invoked when a key event is dispatched to this view.
View.OnLongClickListener Interface definition for a callback to be invoked when a view has been clicked and held.
View.OnTouchListener Interface definition for a callback to be invoked when a touch event is dispatched to this view.
ViewDebug.ViewOperation<T>  
ViewGroup.OnHierarchyChangeListener Interface definition for a callback to be invoked when the hierarchy within this view changed.
ViewManager Interface to let you add and remove child views to an Activity.
ViewParent Defines the responsibilities for a class that will be a parent of a View.
ViewStub.OnInflateListener Listener used to receive a notification after a ViewStub has successfully inflated its layout resource.
ViewTreeObserver.OnComputeInternalInsetsListener Interface definition for a callback to be invoked when layout has completed and the client can compute its interior insets.
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.
ViewTreeObserver.OnTouchModeChangeListener Interface definition for a callback to be invoked when the touch mode changes.
Window.Callback API from a Window back to its caller.
WindowManager The interface that apps use to talk to the window manager.
WindowManagerPolicy This interface supplies all UI-specific behavior of the window manager.
WindowManagerPolicy.OnKeyguardExitResult Callback used by WindowManagerPolicy.exitKeyguardSecurely(android.view.WindowManagerPolicy.OnKeyguardExitResult)
WindowManagerPolicy.WindowState Interface to the Window Manager state associated with a particular window.
 

Class Summary
AbsSavedState A Parcelable implementation that should be used by inheritance hierarchies to ensure the state of all classes along the chain is saved.
ContextThemeWrapper A ContextWrapper that allows you to modify the theme from what is in the wrapped context.
Display  
FocusFinder The algorithm used for finding the next focusable view in a given direction from a view that currently has focus.
FocusFinderHelper A helper class that allows unit tests to access FocusFinder methods.
GestureDetector Detects various gestures and events using the supplied MotionEvents.
GestureDetector.SimpleOnGestureListener A convenience class to extend when you only want to listen for a subset of all the gestures.
Gravity Standard constants and tools for placing an object within a potentially larger container.
HapticFeedbackConstants Constants to be used to perform haptic feedback effects via View.performHapticFeedback(int)
InputChannel An input channel specifies the file descriptors used to send input events to a window in another process.
InputDevice Describes the capabilities of a particular input device.
InputDevice.MotionRange Provides information about the range of values for a particular MotionEvent coordinate.
InputEvent Common base class for input events.
InputQueue An input queue provides a mechanism for an application to receive incoming input events.
KeyCharacterMap Describes the keys provided by a device and their associated labels.
KeyCharacterMap.KeyData  
KeyEvent Object used to report key and button events.
KeyEvent.DispatcherState Use with KeyEvent.dispatch(Callback, DispatcherState, Object) for more advanced key dispatching, such as long presses.
LayoutInflater This class is used to instantiate layout XML file into its corresponding View objects.
MenuInflater This class is used to instantiate menu XML files into Menu objects.
MotionEvent Object used to report movement (mouse, pen, finger, trackball) events.
MotionEvent.PointerCoords Transfer object for pointer coordinates.
OrientationEventListener Helper class for receiving notifications from the SensorManager when the orientation of the device has changed.
OrientationListener Deprecated. use OrientationEventListener instead.
ScaleGestureDetector Detects transformation gestures involving more than one pointer ("multitouch") using the supplied MotionEvents.
ScaleGestureDetector.SimpleOnScaleGestureListener A convenience class to extend when you only want to listen for a subset of scaling-related events.
SoundEffectConstants Constants to be used to play sound effects via View.playSoundEffect(int)
Surface Handle on to a raw buffer that is being managed by the screen compositor.
SurfaceSession An instance of this class represents a connection to the surface flinger, in which you can create one or more Surface instances that will be composited to the screen.
SurfaceView Provides a dedicated drawing surface embedded inside of a view hierarchy.
TouchDelegate Helper class to handle situations where you want a view to have a larger touch area than its actual view bounds.
VelocityTracker Helper 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.AttachInfo A set of information given to a view when it is attached to its parent window.
View.AttachInfo.InvalidateInfo InvalidateInfo is used to post invalidate(int, int, int, int) messages to a Handler.
View.BaseSavedState Base class for derived classes that want to save and restore their own state in View.onSaveInstanceState().
View.MeasureSpec A MeasureSpec encapsulates the layout requirements passed from parent to child.
ViewConfiguration Contains methods to standard constants used in the UI for timeouts, sizes, and distances.
ViewDebug Various 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.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.
ViewRoot The top of a view hierarchy, implementing the needed protocol between View and the WindowManager.
ViewRoot.InputMethodCallback  
ViewRoot.RunQueue  
ViewRoot.TrackballAxis Maintains state information for a single trackball axis, generating discrete (DPAD) movements based on raw trackball motion.
ViewRoot.W  
ViewStub A ViewStub is an invisible, zero-sized View that can be used to lazily inflate layout resources at runtime.
ViewTreeObserver A view tree observer is used to register listeners that can be notified of global changes in the view tree.
ViewTreeObserver.InternalInsetsInfo Parameters used with OnComputeInternalInsetsListener.
VolumePanel Handle the volume up and down keys.
Window Abstract base class for a top-level window look and behavior policy.
WindowManager.LayoutParams  
WindowManagerImpl Low-level communication with the global system window manager.
WindowOrientationListener A special helper class used by the WindowManager for receiving notifications from the SensorManager when the orientation of the device has changed.
WindowOrientationListener.SensorEventListenerImpl This class filters the raw accelerometer data and tries to detect actual changes in orientation.
 

Enum Summary
ViewDebug.HierarchyTraceType Defines the type of hierarhcy trace to output to the hierarchy traces file.
ViewDebug.MotionEventTraceType Defines the type of motion events trace to output to the motion events traces file.
ViewDebug.RecyclerTraceType Defines the type of recycler trace to output to the recycler traces file.
 

Exception Summary
InflateException This exception is thrown by an inflater on error conditions.
Surface.OutOfResourcesException Exception thrown when a surface couldn't be created or resized
SurfaceHolder.BadSurfaceTypeException Exception that is thrown from SurfaceHolder.lockCanvas() when called on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS.
ViewRoot.CalledFromWrongThreadException  
WindowLeaked  
WindowManager.BadTokenException Exception that is thrown when trying to add view whose WindowManager.LayoutParams WindowManager.LayoutParams.token is invalid.
 

Annotation Types Summary
RemotableViewMethod  
ViewDebug.CapturedViewProperty This annotation can be used to mark fields and methods to be dumped when the view is captured.
ViewDebug.ExportedProperty This annotation can be used to mark fields and methods to be dumped by the view server.
ViewDebug.FlagToString Defines a mapping from an flag to a String.
ViewDebug.IntToString Defines a mapping from an int value to a String.
 

Package android.view Description

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


Android 2.3 Gingerbread