検索オプションの長いリストがあります。リストの上下に「検索」するボタンが欲しい。両方のボタンの機能は同じです。最後にxmlレイアウトの最初のボタンをコピーして貼り付けるだけでよいと思いましたが、最後のボタンには機能がありません。アクティビティに余分なコードを追加せずにこれを機能させるにはどうすればよいですか?
<ScrollView
android:layout_width= "fill_parent"
android:layout_height= "fill_parent" >
<LinearLayout
android:id="@+id/LinearLayout02"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<Button android:layout_width="fill_parent"
android:layout_height="wrap_content" android:id="@+id/save_search_options"
android:text="Search" android:textSize="25dip"></Button>
<!--search options in between-->
<Button android:layout_width="fill_parent"
android:layout_height="wrap_content" android:id="@+id/save_search_options"
android:text="Search" android:textSize="25dip"></Button>
</LinearLayout>
</ScrollView>