Reputation: 639
I want to know when the getView function will be called, case I want to refresh the listview, and don't know how to do. something like, there are 7 items shown in a listView , and now , I want to change it to 7 other date and images.
Upvotes: 1
Views: 1004
Reputation: 15434
If you need scroll view programmatically, you can use smoothScrollToPosition but it supported only in API 8 and higher.
Upvotes: 1
Reputation: 9993
to refresh the listview call
Adapter.NotifyDataSetChanged()
EDIT
generally listview's list item will have same height if you can calculate the height and call
ListView.scrollBy(x, y);
even simple you can call
ListView.smoothScrollToPosition(position);
if you know the position
the listview should render the new items you added in the adapter(provided you call the notifydatasetchanged())
Upvotes: 0