2010-08-25 39 views
0

我在我的適配器和FastScroll上也實現了SectionIndexer。快速滾動出現,但是當我滾動時,字母索引器總是「A」Android 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(); 
    } 

回答

0

我的代碼中有一個錯誤,使用了錯誤的字段。

+0

錯誤是什麼?請發佈解決方案。 – Slay 2014-12-06 04:57:29

相關問題