English | Site Directory

Android - An Open Handset Alliance Project

package

android.view

Classes | Description

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

Interfaces

ContextMenu Extension of Menu for context menus providing functionality to modify the header of the context menu. 
KeyEvent.Callback  
Menu Interface for managing the items in a menu. 
Menu.Item Interface for direct access to a previously created menu item. 
Menu.OnClickListener Interface to find out when a menu item is invoked. 
Menu.OnSelectionListener Interface to find out when the selection state of a menu item changes. 
SubMenu Subclass of Menu for submenus  
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. 
View.OnClickListener Interface definition for a callback to be invoked when a view is clicked. 
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.OnPopulateContextMenuListener Interface definition for a callback to be invoked when the context menu for this view is being built. 
ViewGroup.OnHierarchyChangeListener Interface definition for a callback to be invoked when the hierarchy within this view changed. 
ViewInflate.Factory  
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. 
Window.Callback API from a Window back to its caller. 
WindowManager The interface that apps use to talk to the window manager. 

Classes

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. 
Gravity Standard constants and tools for placing an object within a potentially larger container. 
KeyEvent Contains constants for key events. 
MotionEvent Object used to report movement (mouse, pen, finger) events. 
RawInputEvent  
Surface  
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. 
UIThreadUtilities In Android, Views must be manipulated only from the UI thread. 
VelocityTracker Helper for tracking the velocity of touch events, for implementing flinging and other such gestures. 
View

The View class represents the basic UI building block. 

View.CheckForKeyLongPress  
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). 

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. 
ViewInflate This class is used to instantiate layout XML file into its corresponding View objects. 
VolumePanel Handle the volume up and down keys. 
Window Abstract base class for a top-level window look and behavior policy. 
WindowManager.LayoutParams  

Exceptions

ViewInflate.InflateException This exception is thrown by the inflator on error conditions. 
WindowManager.BadTokenException Exception that is thrown from addView(View, ViewGroup.LayoutParams) when trying to add view whose WindowManager.LayoutParams token is invalid. 
Build m5-rc15f - 23 Apr 2008 12:29