Display ListView in Reverse Order (Latest First on Top) | Android Example and Tutorial

preview_player
Показать описание
Android Example and Tutorial on how to display ListView elements in reverse order so that the last element of array is displayed on top. This is typically useful for a News app where latest news should be displayed on top.
Рекомендации по теме
Комментарии
Автор

I used the same technique for Recyclerview and it got worked..! Thank you so much !!!

sibiram
Автор

Thank you, Sir. I was looking for this solution since the last 2days. I search almost everything related to list view but the answer was in your video. It helped me a lot.

rajvinderkaur
Автор

thank u
very much
you don't know how much you help me in my app

ali
Автор

thank you very much, this is really helpfull for my apps

Banana-sqhl
Автор

It's hint. I've used it for my code and it works. Thx SemyColon!

evgeniyyear
Автор

Or just insert into your array at index 0, e.g. yourList.add(0, 1); yourList.add(0, 2); yourList.add(0, 3); will display 3, 2, 1.

muffinbubble
Автор

if(cursor.moveToLast()){
do{
//your operations here

}

yt.yeasin
Автор

plz upload video on searchview in
 actionbar... plz..

hardikmehta
welcome to shbcf.ru