2011-08-11 74 views

回答

0

使用這些2:

1. Call getListView().setSelection(int iIndex); 
2. Call getListView().smoothScrollToPosition(); 

請讓我知道,如果這些作品。

1

不使用一套適配器更新內容,使用notifyDatasetChanged istead

 if(listView.getAdapter()==null) 
     listView.setAdapter(myAdapter); 
    else{ 
     //update the adapter data 

     myAdapter.notifyDatasetChanged(); 
    } 

應工作