Reputation: 1224
In my application i have an horizontal listview
where it contains 20 to 30 items, in listview
it is showing 5 item, and when i click any item (accept first two and last two items) it should move to center of the listview
how can i do that please help thanks in advance
Upvotes: 0
Views: 1021
Reputation: 7376
You can do it like ;
adapter.notifyDataSetChanged();
list.setSelection(index);
Upvotes: 1