ToastParams()
Useful to parameterize toast messages
Useful to parameterize toast messages
Read the toast's background color.
Will return the duration of the toast
Will return the current opacity level
Will return the current padding as an array of numbers [left, top, right, bottom]
Will return the current position of the toast as a Point object
Will return the current corner radius
Will return the current text color string
Read the toast text size.
Set the toast's background color.
You can set how long the toast is visible in milliseconds
You can set the transparency level of the toast using this method (0.0 to 1.0)
You can set custom padding for the toast content
You can set the position of the toast on the screen using x and y coordinates
You can set the corner radius of the toast background
You can set the text color of the toast (e.g., "#FF0000" or "#AARRGGBB")
Set the toast text size in scale-independent pixels (sp).
Show toast to the screen