Dela via


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

AbsSeekBar extends the capabilities of ProgressBar by adding a draggable thumb.

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.

AdapterView

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

AdapterView.AdapterContextMenuInfo

Extra menu information provided to the android.view.View.OnCreateContextMenuListener#onCreateContextMenu(ContextMenu, View, ContextMenuInfo) callback when a context menu is brought up for this AdapterView.

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 displays an analogic clock with two hands for hours and minutes.

ArrayAdapter

You can use this adapter to provide views for an AdapterView, Returns a view for each object in a collection of data objects you provide, and can be used with list-based user interface widgets such as ListView or Spinner.

ArrayAdapter<T>

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

AutoCompleteTextView

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

AutoCompleteTextViewIValidatorExtensions
BaseAdapter

Common base class of common implementation for an Adapter that can be used in both ListView (by implementing the specialized ListAdapter interface) and Spinner (by implementing the specialized SpinnerAdapter 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 ExpandableListAdapter used to provide data and Views from some data to an expandable list view.

Button

A user interface element the user can tap or click to perform an action.

CalendarView

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

CalendarView.DateChangeEventArgs

Provides data for the DateChange event.

CheckBox

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

CheckedTextView

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

Chronometer

Class that implements a simple timer.

CompoundButton

A button with two states, checked and unchecked.

CompoundButton.CheckedChangeEventArgs

Provides data for the CheckedChange event.

CursorAdapter

Adapter that exposes data from a android.database.Cursor Cursor to a android.widget.ListView ListView widget.

CursorTreeAdapter

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

DatePicker

Provides a widget for selecting a date.

DatePicker.DateChangedEventArgs
DialerFilter

This widget is a layout that contains several specifically-named child views that handle keyboard entry interpreted as standard phone dialpad digits.

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

A user interface element for entering and modifying text.

ExpandableListView

A view that shows items in a vertically scrolling two-level list.

ExpandableListView.ChildClickEventArgs

Provides data for the ChildClick event.

ExpandableListView.ExpandableListContextMenuInfo

Extra menu information specific to an ExpandableListView provided to the android.view.View.OnCreateContextMenuListener#onCreateContextMenu(ContextMenu, View, ContextMenuInfo) callback when a context menu is brought up for this AdapterView.

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

A filter constrains data with a filtering pattern.

Filter.FilterEventArgs
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.

FrameLayout.LayoutParams

Per-child layout information for layouts that support margins.

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.

GridLayout

A layout that places its children in a rectangular <em>grid</em>.

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.

IAdapterExtensions
IFilterQueryProviderExtensions
ImageButton

Displays a button with an image (instead of text) that can be pressed or clicked by the user.

ImageSwitcher

ViewSwitcher that switches between two ImageViews when a new image is set on it.

ImageView

Displays image resources, for example android.graphics.Bitmap or android.graphics.drawable.Drawable resources.

ImageView.ScaleType

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

ItemEventArgs
LinearLayout

A layout that arranges other views either horizontally in a single column or vertically in 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

Displays a vertically-scrollable collection of views, where each view is positioned immediatelybelow the previous view in the 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.

Magnifier

Android magnifier widget.

Magnifier.Builder

Builder class for Magnifier objects.

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

This class represents a popup window that can be used to display an arbitrary view.

ProgressBar

A user interface element that indicates the progress of an operation.

QuickContactBadge

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

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

Provides data for the CheckedChange event.

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.

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

Specifies how a view is positioned within a 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.RemoteCollectionItems

Representation of a fixed list of items to be displayed in a RemoteViews collection.

RemoteViews.RemoteCollectionItems.Builder
RemoteViews.RemoteCollectionItems.InterfaceConsts
RemoteViews.RemoteResponse

Class representing a response to an action performed on any element of a RemoteViews.

RemoteViews.RemoteView

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

RemoteViews.RemoteViewOutlineProvider

OutlineProvider for a view with a radius set by #setViewOutlinePreferredRadius(int, float, int).

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

This class encapsulates scrolling.

ScrollView

A view group that allows the view hierarchy placed within it to be scrolled.

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

A view that displays its children in a stack and allows users to discretely swipe through the children.

Switch

A Switch is a two-state toggle widget.

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

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 #MATCH_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

Set of layout parameters used in table rows.

TabWidget

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

TextClock

TextClock can display the current date and/or time as a formatted string.

TextSwitcher

Specialized android.widget.ViewSwitcher that contains only children of type android.widget.TextView.

TextView

A user interface element that displays text to the user.

TextView.BufferType

Type of the text buffer that defines the characteristics of the text such as static, styleable, or editable.

TextView.EditorActionEventArgs

Provides data for the EditorAction event.

TextView.SavedState

User interface state that is stored by TextView for implementing View#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.

Toast.Callback

Callback object to be called when the toast is shown or hidden.

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

Layout information for child views of Toolbars.

Toolbar.MenuItemClickEventArgs

Provides data for the MenuItemClick event.

TwoLineListItem

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

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

This widget provides a simple utility for turning a continued long-press event into a series of clicks at some set frequency.

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 AbsListView#CHOICE_MODE_MULTIPLE_MODAL.

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

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

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 changed 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

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

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

Defines a filterable behavior.

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 ExpandableListAdapter 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 android.widget.Spinner and its data.

IThemedSpinnerAdapter

An extension of SpinnerAdapter that is capable of inflating drop-down views against a different theme than normal views.

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

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

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

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

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.

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