Alex Rivera | Logout

Re-index/Refresh a SectionIndexer

Asked 2010-10-10T02:23:40.523
15

Is there any way to re-index a SectionIndexer after new items are added to a ListView?

I found this solution, but the overlay is position in the top left corner after the SectionIndexer is refreshed.

Anyone have any ideas?

Edit
Report

1 Answer

1

I found that the best way to do this is to call setContentView(R.layout.whatever) and then re-populate the ListView with your new adapter / new data items. This will redraw the ListView with your new items and the FastScroll Overlay will appear in the correct place.

answered 2012-04-01T17:17:15.603

Your Answer