🎴 Flashcard Mode

Android UI Components and Notifications

Card1 / 13
Mastered0
Review0
QuestionClick to flip

How to set the duration of the Toast by using Toast class?

AnswerClick to flip back
A
int dur=Toast.LENGTH_SHORT;
💡 Explanation:

There are two way to declare the duration of the Toast:
int dur=Toast.LENGTH_SHORT;
int dur=Toast.LENGTH_LONG;

Change Mode