0

I am populating ListView with an adapter as:

ListView lv;
FilterAdapter adapter=new FilterAdapter(Brand,Model,Price,Id);
lv.setAdapter(adapter);

Here FilterAdapter is another adapter class made by me. When I am adding, the last added object is going at the bottom of the listview, I want it to come on top and the order of items in listview to be recently added-last added. How can i achieve this, do i have to make changes in FilterAdapter class (getView() method)?

1 Answers1

0

You can achieve this, by adding these tags into your XML file (the one you have your ListView.

android:stackFromBottom="true"
android:transcriptMode="normal"

hope it helps

zozelfelfo
  • 3,776
  • 2
  • 21
  • 35