Online Course Support

This is an extract from an XML layout file:

Question 1
This is an extract from an XML layout file:

123456789
<Button
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
android:text=”click”
android:id=”@+id/myButton”
android:layout_alignParentTop=”true”
android:layout_alignParentLeft=”true”
android:layout_alignParentStart=”true”
android:onClick=”go” />
Which method must be defined in your activity Java code in order to display a pop-up message when this button is clicked?

1 point

public void click(Intent i)

public void click(View v)

public Intent go()

public void go(View v)

public Intent click()

public void go(Intent i)

Similar Posts