ちょいとはまったのでメモ。 ListViewの中でどうしてもボタンを並べて、ボタンが押されたらActivityに通知させたかったのですが、なかなかスマートな方法が見つからなかった…。 結局OnClickListenerを実装させたListViewのサブクラスを作って、adapter#getViweの中でリスナーの登録をさせることによって実現しました。 具体的なソースは下記のような感じ。 まずレイアウト。サンプルなんで適当。 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android: