CursorAdapter를 이용해 리스트를 나타내는 것인데

 

아래와 같은 방식으로 구현하고 있습니다.

 

public NoteCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to)
  {
    super(context, layout, c, from, to);
    mLayout = layout;
  }
 
  @Override
  public View newView(Context context, Cursor cur, ViewGroup parent)
  {
    LayoutInflater li = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    return li.inflate(mLayout, parent, false);
  }

  @Override
  public void bindView(View view, Context context, final Cursor cur)
  {
    String note = cur.getString(cur.getColumnIndex(TbNote.NOTE));
    String header = cur.getString(cur.getColumnIndex(TbNote.DATE));
    int position = cur.getPosition();
    int viewType;
    LinearLayout llHeader = (LinearLayout) view.findViewById(R.id.llHeader1);
    ...............

 

여기에서 리스트를 클릭 시 moveToPosition 이용하여 cursor 의 위치를 조정하고

 

위치한 cursor 부터 새롭게 화면을 그릴려고 하니 잘 안됩니다.ㅠㅠ

 

조언좀 부탁드리겠습니다.

 

(__)