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.
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.
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
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
Leave a Reply