Which of following is incorrect about the Toast class?

Which of following is incorrect about the Toast class?
A . You cannot set a custom layout for a Toast.
B . A Toast can only be created by an Activity class
C . There is no need to close or hide a Toast, since it closes automatically.
D . A Toast is displayed for only one of the following periods: Toast.LENGHT_SHORT or Toast.LENGTH_LONG

Answer: B

Explanation:

An Android Toast is a small message displayed on the screen, similar to a tool tip or other similar popup notification. A Toast is displayed on top of the main content of an activity, and only remains visible for a short time period.

References: http://tutorials.jenkov.com/android/toast.html

Latest AND-401 Dumps Valid Version with 228 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments