SubscribeSubscribe with Androidlift to get new post on mail.

android Custom Toast Example

android Custom Toast Example

If a simple text message isn’t enough, you can create a customized layout for your toast notification. To create a custom layout, define a View layout, in XML or in your application code, and pass the root View object to the setView(View) method.

In Android Studio create project as Custom Toast.

Output :

Android Custom Toast
Android Custom Toast

activity_main.xml

inflate_toast.xml

ManinActivity.java

build.gradle

colors.xml

Best Luck…!

(18)