Here comes a little Material Toast library for Android Developers. 😄
Add this little piece of code of dependency to your build.gradle file under and you are good to go !
implementation 'com.github.Balram02:MaterialToast:-SNAPSHOT'
Also add maven support to your project
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Method
createToast(int ToastType, String CustomText, int ToastShape)
MaterialToast materialToast = new MaterialToast(MainActivity.this,MaterialToast.LENGTH_SHORT);
materialToast.createToast(MaterialToast.SUCCESS,"Success Material Toast",MaterialToast.SHAPE_DEFAULT);
materialToast.show();
NOTE: It is inherited from Toast class so all the methods from Toast class are already present. Made with ❤️ by Balram02