-5

How can i show the alphabet like below:

This is what i want

I'm using alphabet indexer and that is works. But the alphabet missing from the right side.

László Magyar
  • 355
  • 1
  • 16

2 Answers2

1

Use an Adapter that implements SectionIndexer.

And have your ListView have setFastScrollEnabled(true).

Plenty of tutorials about that around the web, even Google samples I think.

Here is a tutorial I liked about SectionIndexer.

shkschneider
  • 17,833
  • 13
  • 59
  • 112
  • My code works exactly like this. But this is not shows the alphabet on the right side of the screen like on my picture. It just show one character if i scroll. – László Magyar Dec 18 '14 at 07:01
  • Yes, that is the Android way of doing it. What you ask is to port an iOS UI/UX design to Android... – shkschneider Dec 18 '14 at 09:03
0

Android doesn't natively support showing the alphabet on the side of a ListView. To do this, you'll need a library. You'd probably want something like this or that.

Andrew Orobator
  • 7,978
  • 3
  • 36
  • 36