CursorAdaptor - newView / getView / bindView に関する SOF の多くの投稿を読みました。
オートコンプリート テキスト フィールド用のカスタム アダプターを作成する場合、newView() と bindView() を実装する必要があります。
しかし、 getView() を実装すると、スクロール時の速度が向上すると言う人もいます。
質問は、
newView() の場合は、既にビューをインフレートしています。
public View newView(Context context, Cursor cursor, ViewGroup parent) {
final LayoutInflater inflater = LayoutInflater.from(context);
// =Single Line=
final TextView view = (TextView) inflater.inflate(android.R.layout.simple_list_item_1, parent, false);
String item = createItem(cursor);
view.setText(item);
return view;
}
だから getView() で、私はそれで同じことをしますか?