Android get date on listview like whatsApp does

I need to create ListView

with elements that constantly go like in WhatsApp

.

I want to display ListView

with Date as SectionHeader.

I am using ListView

from a SQLite database using a custom adapter.

Now I need to display the date of conversions like the date in WhatsAPP

I found 1 link that looks like some kind of helpful, but I don't understand how to make this possible with a date?

This is a link

Please help me to solve this problem.

+3


source to share


2 answers


Use any view of the list of folder headers.
For reference, you can use this one. https://github.com/emilsjolander/StickyListHeaders .

and you can customize the section title header view as your desire even if whatsapp contains date or any other way you want.



If this helps you, check my en. how up.

+1


source


Yes, you can do it using the same library they used in the link you gave. Just try to distinguish things with a date when they did it with alpha bass. Let me know if you need help. Please check this if it helps.



0


source







All Articles