안녕하세요, 레이아웃의 체크리스트를 사용하는 간단한 애플리케이션이 있습니다. 이상하게도, CheckBox
은 내 갤럭시 폰 (ANDROID V5.0.1)에서 잘 작동하지만 어떤 이유로 안드로이드 태블릿 (안드로이드 V4.2.2)에서 동일한 애플리케이션을 사용할 때 CheckBox
이 사라지면 어떤 아이디어라도 도움이 될 것입니다!태블릿에서 클릭하면 체크 박스가 사라집니다.
XML :
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="6dip"
android:background="#FFFFFF">
<CheckBox
android:id="@+id/checkBox1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="false"
android:focusableInTouchMode="false"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginRight="20dp"
android:buttonTint="#0870f8" />
<TextView
android:id="@+id/code"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:layout_centerVertical="true"
android:layout_toEndOf="@+id/imageView2"
android:layout_marginLeft="20dp" />
<ImageView
android:layout_width="25dp"
android:layout_height="25dp"
android:id="@+id/imageView2"
android:layout_centerVertical="true"
android:layout_alignParentStart="true"
android:layout_marginLeft="20dp" />
</RelativeLayout>
확인란을 선택하여 질문을 편집하고 체크 리스너 구현을 추가하십시오. 또한 완전한 레이아웃 파일 –
을 게시하십시오. XML 파일 –
에서' RelativeLayout>'닫습니다. @ShadowDroid 전체 XML 코드를 추가했습니다. Listener implementatio는 내가 사용하고있는 셀을 잡기 위해 사용됩니다. 클릭 상자를 설정하지 않습니다. 클릭 할 때 확인란 객체와 함께 자동으로 수행됩니다. – paul590