¡@

Home 

2014/10/16 ¤W¤È 08:23:36

android Programming Glossary: sectionindex

Fast Scroll display problem with ListAdapter and SectionIndexer

http://stackoverflow.com/questions/3225092/fast-scroll-display-problem-with-listadapter-and-sectionindexer

mScrollCompleted false final Object sections mSections int sectionIndex if sections null sections.length 1 final int nSections sections.length.. nSections if section nSections section nSections 1 sectionIndex section final SectionIndexer baseAdapter SectionIndexer mListAdapter.. section if prevIndex index prevSection section sectionIndex section break Find the next index in case the assumed next..

Fast Scroll display problem with ListAdapter and SectionIndexer

http://stackoverflow.com/questions/3225092/fast-scroll-display-problem-with-listadapter-and-sectionindexer

void scrollTo float position int count mList.getCount mScrollCompleted false final Object sections mSections int sectionIndex if sections null sections.length 1 final int nSections sections.length int section int position nSections if section nSections.. 1 final int nSections sections.length int section int position nSections if section nSections section nSections 1 sectionIndex section final SectionIndexer baseAdapter SectionIndexer mListAdapter int index baseAdapter.getPositionForSection section.. section 0 section prevIndex baseAdapter.getPositionForSection section if prevIndex index prevSection section sectionIndex section break Find the next index in case the assumed next index is not unique. For instance if there is no P then..