Trying too figure of how too add color too a toast
I tried and I made a regular toast but I'm wanting one with color and effects if possible.
Trying too figure of how too add color too a toast
I tried and I made a regular toast but I'm wanting one with color and effects if possible.
As mentioned above, the Toast color cannot be customised anymore.
The documentation says: Custom toast views are deprecated. Apps can create a standard text toast with the makeText(Context, CharSequence, int) method, or use a Snackbar when in the foreground. Starting from Android Build.VERSION_CODES.R, apps targeting API level Build.VERSION_CODES.R or higher that are in the background will not have custom toast views displayed.
Depending on your use case, look for other components like Snackbars. For this you can do some customisation: https://m2.material.io/components/snackbars/android