IT. Expert System.

Android Reference

SectionIndexer


android.widget

Interface SectionIndexer

  • All Known Implementing Classes:
    AlphabetIndexer


    public interface SectionIndexer
    Interface that should be implemented on Adapters to enable fast scrolling in an AbsListView between sections of the list. A section is a group of list items to jump to that have something in common. For example, they may begin with the same letter or they may be songs from the same artist.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      int getPositionForSection(int section)
      Provides the starting index in the list for a given section.
      int getSectionForPosition(int position)
      This is a reverse mapping to fetch the section index for a given position in the list.
      Object[] getSections()
      This provides the list view with an array of section objects.
    • Method Detail

      • getSections

        Object[] getSections()
        This provides the list view with an array of section objects. In the simplest case these are Strings, each containing one letter of the alphabet. They could be more complex objects that indicate the grouping for the adapter's consumption. The list view will call toString() on the objects to get the preview letter to display while scrolling.
        Returns:
        the array of objects that indicate the different sections of the list.
      • getPositionForSection

        int getPositionForSection(int section)
        Provides the starting index in the list for a given section.
        Parameters:
        section - the index of the section to jump to.
        Returns:
        the starting position of that section. If the section is out of bounds, the position must be clipped to fall within the size of the list.
      • getSectionForPosition

        int getSectionForPosition(int position)
        This is a reverse mapping to fetch the section index for a given position in the list.
        Parameters:
        position - the position for which to return the section
        Returns:
        the section index. If the position is out of bounds, the section index must be clipped to fall within the size of the section array.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1800 / 159532450. Delta: 0.04282 с