Android Guides | Samples

Android.Widget.ISectionIndexer

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

See Also: ISectionIndexer

Syntax

[Android.Runtime.Register("android/widget/SectionIndexer", "", "Android.Widget.ISectionIndexerInvoker")]
public interface ISectionIndexer : IJavaObject, IDisposable

Remarks

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

A section is a group of list items that have something in common. For example, they may begin with the same letter or they may be songs from the same artist.

IExpandableListAdapters that consider groups and sections as synonymous should account for collapsed groups and return an appropriate section/position.

See Also

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3

The members of Android.Widget.ISectionIndexer are listed below.

Public Methods

GetPositionForSection(Int32) : Int32
Given the index of a section within the array of section objects, returns the starting position of that section within the adapter.
GetSectionForPosition(Int32) : Int32
Given a position within the adapter, returns the index of the corresponding section within the array of section objects.
GetSections() : Object[]
Returns an array of objects representing sections of the list.