Android StyleableToast Example

Devendra Chavan
1 min readMay 20, 2020

In this Tutorial we will take a look at the StyleableToast library, with which we can easily create toasts with customized attributes like background color, text color, borders, icons and more. #MyStyleableToast

STEP 1 : Create new Android Studio Project.

STEP 2 : After Creating new Project go to build.gradle and add dependencies implementation ‘com.muddzdev:styleabletoast:2.2.3’ and sync project

STEP 3: then go to res->layout->activity_main.xml

STEP 4: After that go to res->values->styles.xml

STEP 5: And this is the final step now open your MainActivity.java file and add below code

STEP 6: Output

Show More Tutorials And Feel free to SUBSCRIBE to my YOUTUBE channel

--

--