Method Description public static Toast makeText(Context context, CharSequence text, int duration) makes the toast containing text and duration. How to make a toast in javatpoint example? To display the toast, call the show () method, as demonstrated in the following example: val text = “Hello toast!” CharSequence text = “Hello toast!” int duration = Toast. The makeText () method returns a properly initialized Toast object. The duration that the toast should remain on the screen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |