What does the following line of code do?
Toast toast = Toast.makeText(this,"Android ATC", Toast.LENGTH_LONG);
toast.setGravity(Gravity.TOP|Gravity.RIGH, 0, 0);
The toast will show the text message on top-right corner of the toast box.
The toast will appear on the top-right corner
The toast will appear at the center of the screen at position(0,0), but aligned to the top-right corner.
The toast will have it Ul components place on the top-right corner.
© 2017 QuizBucket.org