Share via


AbsListView.SetAdapter(IListAdapter) Method

Definition

Caution

Please use the Adapter property setter

Sets the adapter that provides the data and the views to represent the data in this widget.

[Android.Runtime.Register("setAdapter", "(Landroid/widget/ListAdapter;)V", "GetSetAdapter_Landroid_widget_ListAdapter_Handler")]
[System.Obsolete("Please use the Adapter property setter")]
public virtual void SetAdapter (Android.Widget.IListAdapter adapter);
[<Android.Runtime.Register("setAdapter", "(Landroid/widget/ListAdapter;)V", "GetSetAdapter_Landroid_widget_ListAdapter_Handler")>]
[<System.Obsolete("Please use the Adapter property setter")>]
abstract member SetAdapter : Android.Widget.IListAdapter -> unit
override this.SetAdapter : Android.Widget.IListAdapter -> unit

Parameters

adapter
IListAdapter

The adapter to use to create this view's content.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to