开发者

Android: custom view layout for SectionIndexer and disabling SectionIndexer on the fly

  1. Is it possible to use custom view as 开发者_运维百科a section indexer? I.e. make it more transparent and use images instead of characters?
  2. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜