Solved

What Does the Following Line of Code Do? Toast Toast

Question 82

Multiple Choice

What does the following line of code do? Toast toast = Toast.makeText(this,"Android ATC", Toast.LENGTH_LONG) ; toast.setGravity(Gravity.TOP|Gravity.RIGHT, 0, 0) ; toast.show(  ) ;


A) The toast will have it UI components place on the top-right corner.
B) The toast will appear on the top-right corner.
C) The toast will show the text message on top-right corner of the toast box.
D) The toast will appear at the center of the screen at position (0,0) , but aligned to the top-right corner.

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