Share via


AbsListView.SetSelector(Int32) Method

Definition

Set a Drawable that should be used to highlight the currently selected item.

[Android.Runtime.Register("setSelector", "(I)V", "GetSetSelector_IHandler")]
public virtual void SetSelector (int resID);
[<Android.Runtime.Register("setSelector", "(I)V", "GetSetSelector_IHandler")>]
abstract member SetSelector : int -> unit
override this.SetSelector : int -> unit

Parameters

resID
Int32

A Drawable resource to use as the selection highlight.

Attributes

Remarks

Set a Drawable that should be used to highlight the currently selected item.

Java documentation for android.widget.AbsListView.setSelector(int).

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