Solved

When a Button Is Clicked on by the User, We

Question 12

Multiple Choice

When a button is clicked on by the user, we want the method foo to execute. How do we do it (inside the Button element of the activity_main.xml file) ?


A) android:onClick="foo"
B) android="foo"
C) android:onClick="@activity/foo"
D) onClick="foo"

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions