こんにちは私はレイアウトのチェックリストを使用する簡単なアプリケーションを持っています。奇妙なことに、CheckBox
は私のギャラクシーの携帯電話(ANDROID V5.0.1)でうまくいきますが、同じアプリケーションをタブレット(ANDROID 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>
質問を編集し、チェックボックスのチェックリスナーの実装を追加してください。また、完全なレイアウトファイル –
を投稿してください。 ' RelativeLayout>' XMLファイル –
@ShadowDroid完全なxmlコードを追加しました。リスナのimplementatioは、私が使用しているセルをつかむために使用されています。これはクリックボックスを設定しません。これは、クリックすると自動的にチェックボックスオブジェクトで行われますか? – paul590