これが私の問題です:
チャットアプリケーションがあり、メッセージは ListView に表示されます。ListView は、画面の特定の部分を埋めます。ユーザーが ListView をクリックすると、入力用のダイアログが表示されます。私の問題は、onItemClickListener を使用した ListView のクリックしか認識できないことですが、アプリの起動時に ListView でクリックする項目がありません。
ListView のボタンについて考えました。
<FrameLayout
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:orientation="vertical"
android:layout_marginTop="10dip"
>
<ListView
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:id="@+id/ver_list"
android:stackFromBottom="true"
android:cacheColorHint="#00000000"
android:transcriptMode="alwaysScroll">
</ListView>
<Button
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:id="@+id/ver_listbutton"
android:background="@null"></Button> </FrameLayout>
これで、ボタンが配置された ListView のスペースのクリックを認識できます。
しかし、FrameLayout では、ボタンの下にあるため、ListView をもうスクロールできません。
誰かがこれに対する解決策を持っていますか?