Adding image to Toast?
问题 Is it possible to programmatically add an image to a toast popup? 回答1: Yes , you can add imageview or any view into the toast notification by using setView() method, using this method you can customize the Toast as per your requirement. Here i have created a Custom layout file to be inflated into the Toast notification, and then i have used this layout in Toast notification by using setView() method. cust_toast_layout.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=