Android Toast
With code // create instance Toast toast = Toast . makeText ( context , text , duration ); // set message color TextView textView = ( TextView ) toast . getView (). findViewById ( android . R . id . message ); textView . setTextColor ( Color . YELLOW ); // set background color toast . getView (). setBackgroundColor ( getResources (). getColor ( R . color . indigo )); With custom view I. Declare your custom view inside of any layout.xml file. <? xml version = "1.0" encoding = "utf-8" ?> <TextView xmlns:android = "http://schemas.android.com/apk/res/android" android:id = "@+id/txtMessage" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:drawableStart = "@drawable/ic_report_problem" android:drawablePadding = "8dp" android:paddingTop = "8dp" android:p...