2011-08-11 35 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(); 
    } 

应工作