Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Last active Jul 11, 2021
Embed
What would you like to do?
how to set button click event 1-4
<Button
android:id="@+id/btn1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ボタン1"
android:onClick="showMessage"/>
<Button
android:id="@+id/btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ボタン2"
android:onClick="showMessage"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ボタン3"
android:onClick="deleteMessage"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment