0
listview에 새 항목을 만드는 데이터베이스를 만들었습니다. ListView에 포함 :ListView 항목을 열 때 오류가 발생했습니다.
1) 텍스트 뷰
2) CheckBox의
3) TableRow
난 단지 텍스트 뷰의 코드를 작성하도록 요청 :
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/text1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dip"/>
가 그럼 난의 ListView 항목을 열 수 있습니다 . 나는 3 가지 코드 생성을 요청할 때 :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:id="@+id/tableRow1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="4.54" >
<CheckBox
android:id="@+id/check"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="false"/>
<TextView
android:id="@+id/text1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dip"/>
</TableRow>
</LinearLayout>
을 나는 체크 박스와 텍스트 뷰 영역에서 클릭을 ListItem을 열 수입니다. 나는 전체 열로 그것을 열 수 없습니다. 무엇을 놓쳤는 지, 행을 클릭하면 ListItem을 열 수 있습니까?
클릭하면 어떻게 열 수 있습니까? 정교한 pls. – Raghunandan