<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:orientation="horizontal"
   android:layout_width="fill_parent"
   android:layout_height="wrap_content">
 <TextView
  android:id="@+id/txt1"
  android:textSize="30px"
  android:layout_width="60px"
  android:layout_height="wrap_content"
  android:layout_alignParentLeft="true"/>
   <CheckBox
  android:id="@+id/chbox"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_alignParentRight="true"/>
</RelativeLayout>

커서 아탑다 상속해서 커스텀했구요
 public class CombiningCursorAdapter extends CursorAdapter {
   
     public CombiningCursorAdapter(Context cntx,Cursor cursor)
     {
         super(cntx, cursor,true);
     }

     @Override
     public void bindView(View view, Context context, Cursor cursor) {
      TextView text =(TextView)view.findViewById(R.id.txt1);
      text.setText(cursor.getString(1));
         //((TextView) view).setText(cursor.getString(1));
     }

     @Override
     public View newView(Context context, Cursor cursor, ViewGroup parent) {
         LayoutInflater inflater = LayoutInflater.from(context);
         View view = inflater.inflate(R.layout.list, parent, false);
         return view;
         //return view.findViewById(android.R.id.text1);
     }
 }

 

제가 지금 하고싶은건요 리스트 뷰에 텍스트와 체크박스를 두고 서로 각각 다른 이벤트를 주고싶은데

커서 아답터를 상속해서 바꿔봤는데요 체크박스가있으면 체크박스만 선택되고 옆에 텍스트는 아무런 반응이없고

체크를 없애면 텍스트를 선택하면 이벤트는 발생이 되는데 (TextView)parent.getChildAt(position) 이구문만 만나면
오류 나네요 ㅠㅠ
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
 
  View popview =null;
  TextView popt=null;
  TextView text=(TextView)parent.getChildAt(position);// 오류
  String value=text.getText().toString();
  String poptext=DoSrch(value, "1");

  popview = View.inflate(this,R.layout.text, null);
  popt =(TextView)popview.findViewById(R.id.poptext);
  popt.setText(poptext);
  new AlertDialog.Builder(this).setTitle("해석").setView(popview).setPositiveButton("닫기",null).show();
  
 }