English | Site Directory

Android - An Open Handset Alliance Project

package

android.widget

Classes | Description

The widget package contains (mostly visual) UI elements to use on your Application screen. more...

Interfaces

Adapter An Adapter object acts as a bridge between an AdapterView and the underlying data for that view. 
AdapterView.OnItemClickListener Interface definition for a callback to be invoked when an item in this AdapterView has been clicked. 
AdapterView.OnItemLongClickListener Interface definition for a callback to be invoked when an item in this view has been clicked and held. 
AdapterView.OnItemSelectedListener Interface definition for a callback to be invoked when an item in this view has been selected. 
CompoundButton.OnCheckedChangeListener Interface definition for a callback to be invoked when the checked state of a compound button changed. 
DatePicker.OnDateSetListener The callback used to indicate the user is done filling in the date. 
ExpandableListAdapter An adapter that links a ExpandableListView with the underlying data. 
ExpandableListView.OnChildClickListener Interface definition for a callback to be invoked when a child in this expandable list has been clicked. 
ExpandableListView.OnGroupClickListener Interface definition for a callback to be invoked when a group in this expandable list has been clicked. 
ExpandableListView.OnGroupCollapseListener Used for being notified when a group is collapsed  
ExpandableListView.OnGroupExpandListener Used for being notified when a group is expanded  
Filter.FilterListener

Listener used to receive a notification upon completion of a filtering operation. 

Filterable

Defines a filterable behavior. 

GalleryAdapter The GalleryAdapter class acts as a bridge between a Gallery and the data that backs it. 
ListAdapter The ListAdapter class acts as a bridge between a ListView and the data that backs the list. 
ListView.OnListViewScrollListener Interface definition for a callback to be invoked when either the number of visible elements change or the index of the first element changes. 
MediaController.MediaPlayerControl  
MenuBuilder.Callback Called by menu to notify of close and selection changes  
MenuBuilder.ItemInvoker Called by menu items to execute their associated action  
MenuView Minimal interface for a menu view. 
MenuView.ItemView Minimal interface for a menu item view. 
MenuView.ItemView.CheckableCapable Interface that should be implemented by ItemViews that are capable of displaying checkable items (i.e. 
MenuView.ItemView.CondensedTitleCapable Interface that should be implemented by ItemViews that prefer displaying the condensed title rather than the normal title. 
MenuView.ItemView.IconCapable Interface that should be implemented by ItemViews that are capable of displaying the icon for the item. 
MenuView.ItemView.ShortcutCapable Interface that should be implemented by ItemViews that are capable of displaying the shortcut for the item. 
RadioGroup.OnCheckedChangeListener

Interface definition for a callback to be invoked when the checked radio button changed in this group. 

SimpleCursorAdapter.CursorToStringConverter This class can be used by external clients of SimpleCursorAdapter to define how the Cursor should be converted to a String. 
SimpleCursorAdapter.FilterQueryProvider This class can be used by external clients of SimpleCursorAdapter to define how the content of the adapter should be filtered. 
SimpleCursorAdapter.ViewBinder This class can be used by external clients of SimpleCursorAdapter to bind values fom the Cursor to views. 
SpinnerAdapter

A SpinnerAdapter acts as a bridge between a Spinner and the data. 

TabHost.OnTabChangeListener Interface definition for a callback to be invoked when tab changed  
TabHost.TabContentFactory Makes the content of a tab when it is selected. 
Ticker.TickerListener A TickerListener receives notifications from the Ticker  
TimePicker.OnTimeChangedListener The callback interface used to indicate the time has been adjusted. 
TimePicker.OnTimeSetListener The callback interface used to indicate the user is done filling in the time (they clicked on the 'Set' button). 
ViewSwitcher.ViewFactory Creates views in a ViewSwitcher. 
ZoomSlider.OnZoomChangedListener

The OnZoomChangedListener is used as a callback to be notified when the user has changed the zoom level. 

Classes

AbsListView Common code shared between ListView and GridView
AbsListView.CheckForKeyLongPress  
AbsListView.CheckForLongPress  
AbsListView.CheckForTap  
AbsListView.RecycleBin The RecycleBin facilitates resuse of views across layouts. 
AbsoluteLayout A layout that lets you specify exact locations (x/y coordinates) of its children. 
AbsoluteLayout.LayoutParams Per-child layout information associated with AbsoluteLayout. 
ActivityAdapter Adapter which shows the set of activities that can be performed for a given intent. 
ActivityIconAdapter Adapter which shows the set of activities that can be performed for a given intent. 
AdapterView An AdapterView is a view whose children are determined by an Adapter
AdapterView.ContextMenuInfo Extra menu information provided to the onPopulateContextMenu(ContextMenu, View, Object) callback when a context menu is brought up for this AdapterView. 
AdapterView.MyDataSetObserver  
AnalogClock This widget display an analogic clock with two hands for hours and minutes. 
ArrayAdapter A ListAdapter that manages a ListView backed by an array of arbitrary objects. 
AutoCompleteTextView

An editable text view that shows completion suggestions automatically while the user is typing. 

BaseAdapter  
BaseExpandableListAdapter Base class for a ExpandableListAdapter used to provide data and Views from some data to an expandable list view. 
Button

Button represents a push-button widget. 

CheckBox

A checkbox is a specific type of two-states button that can be either checked or unchecked. 

Chronometer Class that implements a simple timer. 
CompoundButton

A button with two states, checked and unchecked. 

CursorAdapter Adapter that exposes data from a Cursor to a ListView widget. 
CursorTreeAdapter An adapter that exposes data from a series of Cursors to an ExpandableListView widget. 
CursorTreeAdapter.MyCursorHelper Helper class for Cursor management:
  • Data validity
  • Funneling the content and data set observers from a Cursor to a single data set observer for widgets
  • ID from the Cursor for use in adapter IDs
  • Swapping cursors but maintaining other metadata  
  • DatePicker A view for selecting a month / year / day based on a calendar like layout. 
    DialerFilter

    Also see ViewGroup.LayoutParams for layout attributes. 

    DigitalClock Like AnalogClock, but digital. 
    EditText EditText is a thin veneer over TextView that configures itself to be editable. 
    ExpandableListView A view that shows items in a vertically scrolling two-level list. 
    ExpandableListView.ExpandableListContextMenuInfo Extra menu information specific to an ExpandableListView provided to the onPopulateContextMenu(ContextMenu, View, Object) callback when a context menu is brought up for this AdapterView. 
    Filter

    A filter constrains data with a filtering pattern. 

    Filter.FilterResults

    Holds the results of a filtering operation. 

    FrameLayout FrameLayout is designed to block out an area on the screen to display a single item. 
    Gallery A view that shows items in a center-locked, horizontally scrolling list. 
    Gallery.LayoutParams Gallery extends LayoutParams to provide a place to hold current Transformation information along with previous position/transformation info. 
    GridView A view that shows items in two-dimensional scrolling grid. 
    HeaderViewListAdapter ListAdapter used when a ListView has header views. 
    ImageButton

    An image button displays an image that can be pressed, or clicked, by the user. 

    ImageSwitcher

    Also see ViewGroup.LayoutParams for layout attributes. 

    ImageView Displays an arbitrary image, such as an icon. 
    LinearLayout A Layout that arranges its children in a single column or a single row. 
    LinearLayout.LayoutParams Per-child layout information associated with ViewLinearLayout. 
    ListMenuItemView The item view for each item in the ListView-based MenuViews. 
    ListView A view that shows items in a vertically scrolling list. 
    MediaController  
    MenuBuilder Implementation of the Menu interface for creating a standard menu UI. 
    PopupWindow

    A popup window that can be used to display an arbitrary view. 

    ProgressBar

    Visual indicator of progress in some operation. 

    RadioButton

    A radio button is a two-states button that can be either checked or unchecked. 

    RadioGroup

    This class is used to create a multiple-exclusion scope for a set of radio buttons. 

    RadioGroup.LayoutParams

    This set of layout parameters defaults the width and the height of the children to WRAP_CONTENT when they are not specified in the XML file. 

    RelativeLayout A Layout where the positions of the children can be described in relation to each other or to the parent. 
    RelativeLayout.LayoutParams Per-child layout information associated with RelativeLayout. 
    RemoteViews A class that describes a view hierarchy that can be displayed in another process. 
    ResourceCursorAdapter An easy adapter that creates views defined in an XML file. 
    ResourceCursorTreeAdapter A fairly simple ExpandableListAdapter that creates views defined in an XML file. 
    ScaleLayout

    Also see ViewGroup.LayoutParams for layout attributes. 

    ScrollBarDrawable  
    Scroller This class encapsulates scrolling. 
    ScrollView

    Also see ViewGroup.LayoutParams for layout attributes. 

    SimpleAdapter An easy adapter to map static data to views defined in an XML file. 
    SimpleCursorAdapter An easy adapter to map columns from a cursor to TextViews or ImageViews defined in an XML file. 
    SimpleCursorTreeAdapter An easy adapter to map columns from a cursor to TextViews or ImageViews defined in an XML file. 
    SimpleExpandableListAdapter An easy adapter to map static data to group and child views defined in an XML file. 
    Spinner A view that displays one child at a time and lets the user pick among them. 
    SubMenuBuilder The model for a sub menu, which is an extension of the menu. 
    TabHost Container for a tabbed window view. 
    TabHost.TabSpec A tab has a tab indictor, content, and a tag that is used to keep track of it. 
    TableLayout

    A layout that arranges its children into rows and columns. 

    TableLayout.LayoutParams

    This set of layout parameters enforces the width of each child to be FILL_PARENT and the height of each child to be WRAP_CONTENT, but only if the height is not specified. 

    TableRow

    A layout that arranges its children horizontally. 

    TableRow.LayoutParams

    This set of layout parameters enforces the width of each child to be FILL_PARENT and the height of each child to be WRAP_CONTENT

    TabWidget Displays a list of tab labels representing each page in the parent's tab collection. 
    TextSwitcher A TextSwitcher is a specialized ViewSwitcher that contains only children of type TextView
    TextView Displays text to the user and optionally allows them to edit it. 
    Ticker A Ticker is a view that scrolls its child horizontally within its bounds. 
    TimePicker A view for selecting the time of day, in either 24 hour or AM/PM mode. 
    Toast A toast is a view containing a quick little message for the user. The toast class helps you create and show those.  
    TwoLineListItem

    A view group with two children, intended for use in ListViews. 

    VideoView Displays a video file. 
    ViewAnimator

    Also see ViewGroup.LayoutParams for layout attributes. 

    ViewFlipper Shows only one child at a time. 
    ViewSwitcher Shows only one child at a time. 
    ZoomDialog A Dialog that is used to display the ZoomSlider
    ZoomSlider

    The ZoomSlider class displays a vertical slider with marks to denote different zoom levels. 

    Enums

    ImageView.ScaleType  
    TextView.BufferType  

    Exceptions

    RemoteViews.ActionException Exception to send when something goes wrong executing an action  
    Build m5-rc15i - 10 Jun 2008 13:54