private OnItemLongClickListener longClickListener = new OnItemLongClickListener() {
 public boolean onItemLongClick(AdapterView<?> arg0, View arg1,
  int position, long arg3) {
  showAlertDialog();
  return false;
 }
};

private void showAlertDialog() {
 LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
 LinearLayout scanLayout = (LinearLayout) vi.inflate(R.layout.scandialog, null);
 final EditText et_num = (EditText) scanLayout.findViewById(R.id.et_num);     
    String bc_num;
   TextView tv_num = (TextView)findViewById(R.id.tv_num);
    bc_num = ((TextView)tv_num.findViewById(R.id.tv_num)).getText().toString();
    et_num.setText(bc_num);
}

 

커스텀 리스트뷰의 아이템 클릭시에 다이얼로그창을 띄우고
다이얼로그에서는 클릭된 리스트의 텍스트뷰 데이터를 출력하려고하는데
선택된 리스트뷰의 데이터를 가져오긴 가져오는데
어디를 클릭하던간에 첫번째줄의 데이터만 출력되네요...

 

조언부탁드립니다.