Android: custom view layout for SectionIndexer and disabling SectionIndexer on the fly
- Is it possible to use custom view as 开发者_运维百科a section indexer? I.e. make it more transparent and use images instead of characters?
- Is it possible to enable/disable SectionIndexer popup on demand without disabling FastScroll feature?
It is possible. To achieve this do not use SectionIndexer. Create a CustomAdapter by extending BaseAdapter. There make an entry for image view. if the condition is satisfied, then show the image view; otherwise do not show the image view. You have to set the condition. Better create a hashmap, and store position
as key and imageview visible or not
as value.
精彩评论