Create ToastView file
I used https://github.com/calimarkus/JDStatusBarNotification to add toast functionality.
- The "simple" style can be used everywhere as it is very flexible.
- The "icon" style has some limits; I would recommend using it as little as possible.**
- We can add(in future) the "action" style, but my investigation showed that the button does not respond when clicked. If its functionality is crucial, I can go back and investigate more deeply.
- We can also add(in future) toasts with an activity indicator or a progress bar.
** To use the "icon" style, we need to set the "customToast" variable, where I have specified almost all possible settings for the toast. Also, I did not find how to allow the Title and Subtitle to shift text to the next line. By default, the text becomes smaller and smaller.
Video result:
Edited by Dmytro Ryshchuk