首页 > 技术文章 > android 更新listview 其中一行的数据显示

duanweishi 2015-02-27 14:04 原文

private void updateView(int index){
    View v = yourListView.getChildAt(index - 
        yourListView.getFirstVisiblePosition());

    if(v == null)
       return;

    TextView someText = (TextView) v.findViewById(R.id.sometextview);
    someText.setText("Hi! I updated you manually!");
}

 

推荐阅读