2012-10-19 156 views

回答

2

可以使用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(); 
} 
});