안드로이드 개발 질문/답변
(글 수 45,052)
TextView와 CheckBox가 있는 ListView를 만들고 있습니다.
ListActivity를 상속 하지 않고 일반 Activity를 사용하고 ListView를 (ListView)findViewById(R.id.oplist)로 찾았습니다.
ListItem을 LinearLayout 을 상속 받아서 연결 했는데
Layout XML에서
<com.mytest.view.option.CheckableLinearLayout
xmlns:mytest="http://schemas.android.com/apk/res/com.mytest.view.option"
xmlns:android="http://schemas.android.com/apk/res/android"
mytest:checkable="@+id/litemchk" <== 에러
android:id="@+id/oplayout"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
...
</com.mytest.view.option.CheckableLinearLayout >
에러메세지:
error: No resource identifier found for attribute 'checkable' in package 'com.mytest.view.option'
이렇게 나오고 있습니다...
CheckableLinearLayout 에는 분명 checkable 있는데...
이런식으로 Custom ListView 를 만들면 않되는건지...
도움 부탁 드립니다.




이 행에서 mytest라는건 뭐예요?
이거 잘못된거 같네요...
android 이것으루 바꾸어보세요.
그리구 시작이 틀린거 같네요... 시작이 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:padding="6dip" android:gravity="center_vertical|center"
android:layout_width="320dip" android:layout_height="64dip">
뭐 이렇게 되여야 하구요.
마감은 </LinearLayout> 이렇게 되여야...
그럼 이만
언제든지 도와들릴게요.