1
给出下面给出的代码在listview
更新当前行,但该列表是没有得到好心更新告诉我,如果我的代码中的任何错误广东话更新当前行ListView和我的代码如下
private void update(int id)
{
int c = subaccountview.getChildCount();
for (int i = 0; i < c; i++)
{
View view = subaccountview.getChildAt(i);
// if (view.getTag() == id)
// {
TextView someText = (TextView) view.findViewById(R.id.balancenamenew);
someText.setText(Sessiondata.getInstance().getRbalvalue());
jsonCustomAdapter.notifyDataSetChanged();
// }
// update view
}
}
use Log.i(TAG,DESCRIPTIYN); 'notifyDataSetChanged'之后,还有评论'更新视图'两个方括号关闭! – AndroSco