4
如何应用拉下ListView的效果并释放它,它会刷新。 与Facebook相同,当拉下它时,它将刷新NewsFeeds。刷新适配器拉动ListView Android
如何应用拉下ListView的效果并释放它,它会刷新。 与Facebook相同,当拉下它时,它将刷新NewsFeeds。刷新适配器拉动ListView Android
可以使用this在Android的创造这样的名单。
你必须使用刷新监听器代码为:
PullToRefreshListView listView = (PullToRefreshListView) findViewById(R.id.pull_to_refresh_listview);
listView.setOnRefreshListener(new OnRefreshListener() {
public void onRefresh() {
// Your code to refresh the list contents
// ...
// Make sure you call listView.onRefreshComplete()
// when the loading is done. This can be done from here or any
// other place, like on a broadcast receive from your loading
// service or the onPostExecute of your AsyncTask.
listView.onRefreshComplete();
}
});