Android bindView是如何工作的?
我有一个自定义游标适配器。我已将bindView方法重写为Android bindView是如何工作的?,android,Android,我有一个自定义游标适配器。我已将bindView方法重写为 public void bindView(View view,Context context, Cursor cursor){ TextView title=(TextView) view.findViewById(R.id.row_title); title.setText(cursor.getString(1)); TextView subTitle=(TextView) view.find
public void bindView(View view,Context context, Cursor cursor){
TextView title=(TextView) view.findViewById(R.id.row_title);
title.setText(cursor.getString(1));
TextView subTitle=(TextView) view.findViewById(R.id.row_subtitle);
subTitle.setText(cursor.getString(2));
}
我的问题是,在生成新列表项时,新列表项如何包含光标下一行的元素?是否自动调用cursor.moveToNext()
游标从中获取数据的游标光标已移动到正确的位置。