This is a project for investigating the Toast API.
Toast uses a Only makeText.
or Use Snackbar, which can be displayed only when the app is in the foreground.
-
can put up to 2 lines of text message in Toast.
-
Limited the number of Toasts that can be displayed.
Pixel 4 OS10 | Pixel 4 OS11 |
---|---|
Pixel 4 OS: 8 | Pixel 4 OS: 12 |
---|---|
https://github.com/LeoAndo/android-toast-samples/tree/main/ToastComposeSample
https://github.com/LeoAndo/android-toast-samples/tree/main/ToastKotlinSample
https://github.com/LeoAndo/android-toast-samples/tree/main/ToastJavaSample