0

各アイテムにwithandroid.widget.GalleryImageViewaがあります。 ユーザーは、画像に削除のマークを付けることができます。 Checkbox

このカスタムがあると、スクロール/フリングできませんView。すべてが正常に読み込まれており、画像が上に表示されていることがわかりCheckBoxます。

タッチ イベントが、Gallery
この委任タッチに関する 20 のディスカッションを読んだことをどのように行うことができますが、何も機能しません。

ここに私の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="fill_parent"
                android:clickable="false"
                android:focusable="false"
                >

    <ImageView android:id="@+id/thumbImage" 
               android:layout_width="wrap_content"
               android:layout_height="wrap_content" 
               android:layout_centerInParent="true" 
               android:clickable="false"
               android:focusable="false"
               />

    <CheckBox android:id="@+id/itemCheckBox" 
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:clickable="false"
              />
</RelativeLayout>
4

1 に答える 1

0

誰かがこれを使用している場合、私は自分でこれを理解しました。

getView()取り外して内側へtheimageview.setOnClickListener

于 2011-09-05T20:46:54.630 に答える