Custom Toast in Android using Kotlin In previous article we have discussed on what is Toast and its syntax check out on this link if required What is toast and basic example of toast using kotlin Toast Example this will be continued article of previous activity_main.xml Add the below code in your activity_main.xml file , this file contains button which on click will display the toast <? xml version= "1.0" encoding= "utf-8" ?> < LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http://schemas.android.com/tools" xmlns: app = "http://schemas.android.com/apk/res-auto" android :layout_width= "match_parent" android :layout_height= "match_parent" tools :context= ".MainActivity" android :orientation= "vertical" > < Button android :layout_width= ...