How can i create a button with many actions?
I want to create a Button which does a new action every time i press it.
How can i do this in .java? This is the code in .xml for the button:
<Button
android:id="@+id/button2"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/button1"
android:layout_centerHorizontal="true"
android:layout_marginBottom="46dp" />
No comments:
Post a Comment