Android SectionIndexer不显示超出“A”的字母预览

时间:2010-08-25 15:43:11

标签: android

我已经在我的适配器和FastScroll上实现了SectionIndexer。快速滚动出现,但是当我滚动

时,字母索引器总是“A”

该列表大约有1000个项目。

这是我对SectionIndexer的实现。

    @Override
    public int getPositionForSection(int section) {
        return alphaIndexer.getPositionForSection(section);
    }

    @Override
    public int getSectionForPosition(int position) {
        return alphaIndexer.getSectionForPosition(position);
    }

    @Override
    public Object[] getSections() {
        return alphaIndexer.getSections();
    }

1 个答案:

答案 0 :(得分:0)

我的代码中存在错误,使用了错误的字段。

相关问题