Android.Widget Namespace

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

Classes

AbsListView

Base class that can be used to implement virtualized lists of items.

AbsListView.LayoutParams

AbsListView extends LayoutParams to provide a place to hold the view type.

AbsListView.RecyclerEventArgs

Provides data for the Recycler event.

AbsListView.ScrollEventArgs

Provides data for the Scroll event.

AbsListView.ScrollStateChangedEventArgs

Provides data for the ScrollStateChanged event.

AbsoluteLayout

A layout that lets you specify exact locations (x/y coordinates) of its children.

AbsoluteLayout.LayoutParams

Per-child layout information associated with AbsoluteLayout.

AbsSeekBar
AbsSpinner

An abstract base class for spinner widgets.

ActionMenuView

ActionMenuView is a presentation of a series of menu options as a View.

ActionMenuView.LayoutParams
ActionMenuView.MenuItemClickEventArgs

Provides data for the MenuItemClick event.

Adapter

An Adapter object acts as a bridge between an AdapterView and the underlying data for that view.

AdapterConsts
AdapterView

An AdapterView is a view whose children are determined by an Adapter.

AdapterView.AdapterContextMenuInfo
AdapterView.ItemClickEventArgs

Provides data for the ItemClick, ItemClick, and ItemClick events.

AdapterView.ItemLongClickEventArgs

Provides data for the ItemLongClick event.

AdapterView.ItemSelectedEventArgs

Provides data for the E:Android.App.AlertDialog+Builder.ItemSelected, ItemSelected, ItemSelected, and ItemSelected events.

AdapterView.NothingSelectedEventArgs

Provides data for the E:Android.App.AlertDialog+Builder.NothingSelected, NothingSelected, NothingSelected, and NothingSelected events.

AdapterView<T>

An AdapterView is a view whose children are determined by an Adapter.

AdapterViewAnimator

Base class for a AdapterView that will perform animations when switching between its views.

AdapterViewFlipper

Simple ViewAnimator that will animate between two or more views that have been added to it.

AlphabetIndexer

A helper class for adapters that implement the SectionIndexer interface.

AnalogClock

This widget display an analogic clock with two hands for hours and minutes.

ArrayAdapter

A concrete BaseAdapter that is backed by an array of arbitrary objects.

ArrayAdapter<T>

A concrete BaseAdapter that is backed by an array of arbitrary objects.

AutoCompleteTextView
AutoCompleteTextViewIValidatorExtensions
BaseAdapter

Common base class of common implementation for an Adapter that can be used in both ListView (by implementing the specialized IListAdapter interface) and Spinner (by implementing the specialized ISpinnerAdapter interface).

BaseAdapter.InterfaceConsts
BaseAdapter<T>

Common base class of common implementation for an Adapter that can be used in both ListView (by implementing the specialized IListAdapter interface) and Spinner (by implementing the specialized ISpinnerAdapter interface).

BaseExpandableListAdapter

Base class for a IExpandableListAdapter used to provide data and Views from some data to an expandable list view.

Button

Represents a push-button widget.

CalendarView

This class is a calendar widget for displaying and selecting dates.

CalendarView.DateChangeEventArgs

Provides data for the DateChange event.

CheckBox
CheckedTextView

An extension to TextView that supports the ICheckable interface and displays.

Chronometer

Class that implements a simple timer.

CompoundButton
CompoundButton.CheckedChangeEventArgs

Provides data for the CheckedChange event.

CursorAdapter

Adapter that exposes data from a ICursor to a ListView widget.

CursorTreeAdapter

An adapter that exposes data from a series of ICursors to an ExpandableListView widget.

DatePicker

Provides a widget for selecting a date.

DatePicker.DateChangedEventArgs
DialerFilter
DigitalClock

Like AnalogClock, but digital.

EdgeEffect

This class performs the graphical effect used at the edges of scrollable widgets when the user scrolls beyond the content bounds in 2D space.

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

Provides data for the ChildClick event.

ExpandableListView.ExpandableListContextMenuInfo
ExpandableListView.GroupClickEventArgs

Provides data for the GroupClick event.

ExpandableListView.GroupCollapseEventArgs

Provides data for the GroupCollapse event.

ExpandableListView.GroupExpandEventArgs

Provides data for the GroupExpand event.

Filter
Filter.FilterEventArgs
Filter.FilterResults
FrameLayout

FrameLayout is designed to block out an area on the screen to display a single item.

FrameLayout.LayoutParams

Per-child layout information for layouts that support margins.

GridLayout

A layout that places its children in a rectangular grid.

GridLayout.Alignment

Alignments specify where a view should be placed within a cell group and what size it should be.

GridLayout.LayoutParams

Layout information associated with each of the children of a GridLayout.

GridLayout.Spec

A Spec defines the horizontal or vertical characteristics of a group of cells.

GridView

A view that shows items in two-dimensional scrolling grid.

HeaderViewListAdapter

ListAdapter used when a ListView has header views.

HeaderViewListAdapter.InterfaceConsts
HorizontalScrollView

Layout container for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display.

IFilterQueryProviderExtensions
ImageButton
ImageSwitcher
ImageView

Displays an arbitrary image, such as an icon.

ImageView.ScaleType

Options for scaling the bounds of an image to the bounds of this view.

ItemEventArgs
LinearLayout

A Layout that arranges its children in a single column or a single row.

LinearLayout.LayoutParams

Per-child layout information associated with ViewLinearLayout.

ListPopupWindow

A ListPopupWindow anchors itself to a host view and displays a list of choices.

ListView

A view that shows items in a vertically scrolling list.

ListView.FixedViewInfo

A class that represents a fixed view in a list, for example a header at the top or a footer at the bottom.

MediaController

A view containing controls for a MediaPlayer.

MultiAutoCompleteTextView

An editable text view, extending AutoCompleteTextView, that can show completion suggestions for the substring of the text where the user is typing instead of necessarily for the entire thing.

MultiAutoCompleteTextView.CommaTokenizer

This simple Tokenizer can be used for lists where the items are separated by a comma and one or more spaces.

MultiAutoCompleteTextViewITokenizerExtensions
NumberPicker

A widget that enables the user to select a number from a predefined range.

NumberPicker.ScrollEventArgs

Provides data for the Scroll event.

NumberPicker.ValueChangeEventArgs

Provides data for the ValueChanged event.

OverScroller

This class encapsulates scrolling with the ability to overshoot the bounds of a scrolling operation.

PopupMenu

A PopupMenu displays a Menu in a modal popup window anchored to a View.

PopupMenu.DismissEventArgs

Provides data for the DismissEvent event.

PopupMenu.MenuItemClickEventArgs

Provides data for the MenuItemClick event.

PopupWindow
ProgressBar
QuickContactBadge

Widget used to show an image with the standard QuickContact badge and on-click behavior.

RadioButton
RadioGroup
RadioGroup.CheckedChangeEventArgs

Provides data for the CheckedChange event.

RadioGroup.LayoutParams
RatingBar

A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in stars.

RatingBar.RatingBarChangeEventArgs

Provides data for the RatingBarChange event.

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.

RemoteViews.ActionException

Exception to send when something goes wrong executing an action

RemoteViews.InterfaceConsts
RemoteViews.RemoteView

This annotation indicates that a subclass of View is alllowed to be used with the RemoteViews mechanism.

RemoteViewsService

The service to be connected to for a remote adapter to request RemoteViews.

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.

Scroller
ScrollView

Layout container for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display.

SearchView

A widget that provides a user interface for the user to enter a search query and submit a request to a search provider.

SearchView.CloseEventArgs

Provides data for the Close event.

SearchView.QueryTextChangeEventArgs

Provides data for the QueryTextChange event.

SearchView.QueryTextSubmitEventArgs

Provides data for the QueryTextSubmit event.

SearchView.SuggestionClickEventArgs

Provides data for the SuggestionClick event.

SearchView.SuggestionSelectEventArgs

Provides data for the SuggestionSelect event.

SeekBar

A SeekBar is an extension of ProgressBar that adds a draggable thumb.

SeekBar.ProgressChangedEventArgs

Provides data for the ProgressChanged event.

SeekBar.StartTrackingTouchEventArgs

Provides data for the StartTrackingTouch event.

SeekBar.StopTrackingTouchEventArgs

Provides data for the StopTrackingTouch event.

ShareActionProvider

This is a provider for a share action.

ShareActionProvider.ShareTargetSelectedEventArgs

Provides data for the ShareTargetSelected event.

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.

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

SlidingDrawer

SlidingDrawer hides content out of the screen and allows the user to drag a handle to bring the content on screen.

Space

Space is a lightweight View subclass that may be used to create gaps between components in general purpose layouts.

Spinner

A view that displays one child at a time and lets the user pick among them.

StackView
Switch

A Switch is a two-state toggle switch widget that can select between two options.

TabHost

Container for a tabbed window view.

TabHost.TabChangeEventArgs

Provides data for the TabChanged event.

TabHost.TabSpec

A tab has a tab indicator, content, and a tag that is used to keep track of it.

TableLayout
TableLayout.LayoutParams
TableRow
TableRow.LayoutParams
TabWidget

Displays a list of tab labels representing each page in the parent's tab collection.

TextClock
TextSwitcher

Specialized ViewSwitcher that contains only children of type TextView.

TextView

Displays text to the user and optionally allows them to edit it.

TextView.BufferType
TextView.EditorActionEventArgs

Provides data for the EditorAction event.

TextView.SavedState

User interface state that is stored by TextView for implementing OnSaveInstanceState().

TimePicker

A widget for selecting the time of day, in either 24-hour or AM/PM mode.

TimePicker.TimeChangedEventArgs

Provides data for the TimeChanged event.

Toast

A toast is a view containing a quick little message for the user.

ToggleButton

Displays checked/unchecked states as a button with a "light" indicator and by default accompanied with the text "ON" or "OFF".

Toolbar

A standard toolbar for use within application content.

Toolbar.LayoutParams
Toolbar.MenuItemClickEventArgs

Provides data for the MenuItemClick event.

TwoLineListItem
VideoView

Displays a video file.

ViewAnimator

Base class for a FrameLayout container that will perform animations when switching between its views.

ViewFlipper

Simple ViewAnimator that will animate between two or more views that have been added to it.

ViewSwitcher

ViewAnimator that switches between two views, and has a factory from which these views are created.

ZoomButton
ZoomButtonsController

The ZoomButtonsController handles showing and hiding the zoom controls and positioning it relative to an owner view.

ZoomButtonsController.VisibilityChangedEventArgs

Provides data for the VisibilityChanged event.

ZoomButtonsController.ZoomEventArgs

Provides data for the Zoom event.

ZoomControls

The ZoomControls class displays a simple set of controls used for zooming and provides callbacks to register for events.

Interfaces

AbsListView.IMultiChoiceModeListener

A MultiChoiceModeListener receives events for MultipleModal.

AbsListView.IOnScrollListener

Interface definition for a callback to be invoked when the list or grid has been scrolled.

AbsListView.IRecyclerListener

A RecyclerListener is used to receive a notification whenever a View is placed inside the RecycleBin's scrap heap.

AbsListView.ISelectionBoundsAdjuster

The top-level view of a list item can implement this interface to allow itself to modify the bounds of the selection shown for that item.

ActionMenuView.IOnMenuItemClickListener
AdapterView.IOnItemClickListener

Interface definition for a callback to be invoked when an item in this AdapterView has been clicked.

AdapterView.IOnItemLongClickListener

Interface definition for a callback to be invoked when an item in this view has been clicked and held.

AdapterView.IOnItemSelectedListener

Interface definition for a callback to be invoked when an item in this view has been selected.

AutoCompleteTextView.IOnDismissListener

Listener to respond to the AutoCompleteTextView's completion list being dismissed.

AutoCompleteTextView.IValidator

This interface is used to make sure that the text entered in this TextView complies to a certain format.

CalendarView.IOnDateChangeListener

The callback used to indicate the user changes the date.

Chronometer.IOnChronometerTickListener

A callback that notifies when the chronometer has incremented on its own.

CompoundButton.IOnCheckedChangeListener

Interface definition for a callback to be invoked when the checked state of a compound button changed.

DatePicker.IOnDateChangedListener

The callback used to indicate the user changes\d the date.

ExpandableListView.IOnChildClickListener

Interface definition for a callback to be invoked when a child in this expandable list has been clicked.

ExpandableListView.IOnGroupClickListener

Interface definition for a callback to be invoked when a group in this expandable list has been clicked.

ExpandableListView.IOnGroupCollapseListener

Used for being notified when a group is collapsed

ExpandableListView.IOnGroupExpandListener

Used for being notified when a group is expanded

Filter.IFilterListener
IAdapter

An Adapter object acts as a bridge between an AdapterView and the underlying data for that view.

IAdvanceable

This interface can be implemented by any collection-type view which has a notion of progressing through its set of children.

ICheckable

Defines an extension for views that make them checkable.

IExpandableListAdapter

An adapter that links a ExpandableListView with the underlying data.

IFilterable
IFilterQueryProvider

This class can be used by external clients of CursorAdapter and CursorTreeAdapter to define how the content of the adapter should be filtered.

IHeterogeneousExpandableList

Additional methods that when implemented make an IExpandableListAdapter take advantage of the Adapter view type mechanism.

IListAdapter

Extended Adapter that is the bridge between a ListView and the data that backs the list.

ISectionIndexer

Interface that may implemented on Adapters to enable fast scrolling between sections of an AbsListView.

ISpinnerAdapter

Extended Adapter that is the bridge between a Spinner and its data.

IThemedSpinnerAdapter
IWrapperListAdapter

List adapter that wraps another list adapter.

MediaController.IMediaPlayerControl
MultiAutoCompleteTextView.ITokenizer
NumberPicker.IFormatter

Interface used to format current value into a string for presentation.

NumberPicker.IOnScrollListener

Interface to listen for the picker scroll state.

NumberPicker.IOnValueChangeListener

Interface to listen for changes of the current value.

PopupMenu.IOnDismissListener

Callback interface used to notify the application that the menu has closed.

PopupMenu.IOnMenuItemClickListener

Interface responsible for receiving menu item click events if the items themselves do not have individual item click listeners.

PopupWindow.IOnDismissListener

Listener that is called when this popup window is dismissed.

RadioGroup.IOnCheckedChangeListener
RatingBar.IOnRatingBarChangeListener

A callback that notifies clients when the rating has been changed.

RemoteViewsService.IRemoteViewsFactory

An interface for an adapter between a remote collection view (ListView, GridView, etc) and the underlying data for that view.

SearchView.IOnCloseListener
SearchView.IOnQueryTextListener

Callbacks for changes to the query text.

SearchView.IOnSuggestionListener

Callback interface for selection events on suggestions.

SeekBar.IOnSeekBarChangeListener

A callback that notifies clients when the progress level has been changed.

ShareActionProvider.IOnShareTargetSelectedListener

Listener for the event of selecting a share target.

SimpleAdapter.IViewBinder

This class can be used by external clients of SimpleAdapter to bind values to views.

SimpleCursorAdapter.ICursorToStringConverter

This class can be used by external clients of SimpleCursorAdapter to define how the Cursor should be converted to a String.

SimpleCursorAdapter.IViewBinder

This class can be used by external clients of SimpleCursorAdapter to bind values fom the Cursor to views.

SimpleCursorTreeAdapter.IViewBinder

This class can be used by external clients of SimpleCursorTreeAdapter to bind values from the Cursor to views.

SlidingDrawer.IOnDrawerCloseListener

Callback invoked when the drawer is closed.

SlidingDrawer.IOnDrawerOpenListener

Callback invoked when the drawer is opened.

SlidingDrawer.IOnDrawerScrollListener

Callback invoked when the drawer is scrolled.

TabHost.IOnTabChangeListener

Interface definition for a callback to be invoked when tab changed

TabHost.ITabContentFactory

Makes the content of a tab when it is selected.

TextView.IOnEditorActionListener

Interface definition for a callback to be invoked when an action is performed on the editor.

TimePicker.IOnTimeChangedListener

The callback interface used to indicate the time has been adjusted.

Toolbar.IOnMenuItemClickListener
ViewSwitcher.IViewFactory

Creates views in a ViewSwitcher.

ZoomButtonsController.IOnZoomListener

Interface that will be called when the user performs an interaction that triggers some action, for example zooming.

Enums

AbsListViewChoiceMode

Enumerates values returned by several methods of AbsListViewChoiceMode.

AutoSizeTextType
ChoiceMode

Enumerates values returned by several types.

CursorAdapterFlags
DialerMode

Enumerates values returned by several types.

GridAlign

Enumerates values returned by several types.

GridOrientation

Enumerates values returned by several types.

InputMethod

Enumerates values returned by several types.

ItemViewType

Enumerates values returned by the HeaderOrFooter, and Ignore members.

LayoutRules
ListPopupWindowInputMethodMode

Enumerates values returned by several types.

NumberPickerScrollState
Orientation

Enumerates values returned by the Orientation, Horizontal, and Vertical members.

PackedPositionType

Enumerates values returned by several types.

PositionPrompt

Enumerates values returned by several types.

ScrollState
ShowDividers

Enumerates values returned by several types.

SlidingDrawerOrientation

Enumerates values returned by several types.

SpinnerMode

Enumerates values returned by the Dialog, and Dropdown members and taken as a parameter of the F:Android.Widget.Spinner..ctor, F:Android.Widget.Spinner..ctor, and F:Android.Widget.Spinner..ctor members.

StretchMode

Enumerates values returned by several types.

ToastLength

Enumerates values returned by the Duration, Long, and Short members and taken as a parameter of the F:Android.Widget.Toast.MakeText, F:Android.Widget.Toast.MakeText, and F:Android.Widget.Toast.MakeText members.

TranscriptMode

Enumerates values returned by several types.