ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 88 - Associate Android Developer discussion

Report
Export

If constant LENGTH_INDEFINITE is used as a parameter for the setDuration method in Snackbar, what will happen?

A.
The Snackbar will be displayed for a short period of time.
Answers
A.
The Snackbar will be displayed for a short period of time.
B.
The Snackbar will be displayed for a long period of time.
Answers
B.
The Snackbar will be displayed for a long period of time.
C.
The Snackbar will be displayed for a very long period of time.
Answers
C.
The Snackbar will be displayed for a very long period of time.
D.
The Snackbar will be displayed from the time that is shown until either it is dismissed, or another Snackbar is shown.
Answers
D.
The Snackbar will be displayed from the time that is shown until either it is dismissed, or another Snackbar is shown.
E.
The constant LENGTH_INDEFINITE is impossible parameter for the setDuration method in Snackbar
Answers
E.
The constant LENGTH_INDEFINITE is impossible parameter for the setDuration method in Snackbar
Suggested answer: D

Explanation:

Reference: https://developer.android.com/reference/com/google/android/material/snackbar/BaseTransientBottomBar#LENGTH_INDEFINITE https://developer.android.com/guide/topics/ui/notifiers/toasts https://developer.android.com/training/snackbar/action

asked 18/09/2024
Steve Daniels
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first