L
L
lahomie932018-11-19 16:38:14
Android
lahomie93, 2018-11-19 16:38:14

How to make a list with letter separators in Android?

Can you tell me how to make such a list?
https://storage.googleapis.com/spec-host-backup/mi...
To see letters like A
I understand that RecyclerView needs to be applied here. But I don't know how to implement separators with letters. Do you have an example/tutorial?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Vlasov, 2018-11-19
@Neikist

If directly, then check the element at the current position. If the previous one starts with another letter, then display everything you need, if it starts with the same letter, hide it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question