Solved

When a Button Is Clicked on by the User, We

Question 15

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents