2010-08-25 3 views
0

J'ai également implémenté le SectionIndexer sur mon adaptateur et le FastScroll. Le défilement rapide apparaît, mais l'indexeur alphabétique est toujours "A" lorsque je fais défilerAndroid SectionIndexer n'affiche pas l'aperçu alphabétique au-delà de "A"

La liste contient environ 1000 éléments.

Voici ma mise en œuvre du 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(); 
    } 

Répondre

0

Il y avait un bug dans mon code, un mauvais champ était utilisé.

+0

quelle était l'erreur? S'il vous plaît poster la solution. – Slay

Questions connexes