Share via


AbsListView.SetDrawSelectorOnTop(Boolean) Method

Definition

Controls whether the selection highlight drawable should be drawn on top of the item or behind it.

[Android.Runtime.Register("setDrawSelectorOnTop", "(Z)V", "GetSetDrawSelectorOnTop_ZHandler")]
public virtual void SetDrawSelectorOnTop (bool onTop);
[<Android.Runtime.Register("setDrawSelectorOnTop", "(Z)V", "GetSetDrawSelectorOnTop_ZHandler")>]
abstract member SetDrawSelectorOnTop : bool -> unit
override this.SetDrawSelectorOnTop : bool -> unit

Parameters

onTop
Boolean

If true, the selector will be drawn on the item it is highlighting. The default is false.

Attributes

Remarks

Controls whether the selection highlight drawable should be drawn on top of the item or behind it.

Java documentation for android.widget.AbsListView.setDrawSelectorOnTop(boolean).

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