Add this maven line to root settings.gradle
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Lastly add this line to build.gradle
file in app module.
dependencies {
implementation 'com.github.fovelas:bubble:1.0.0'
}
Very similar to use of Android Toast. There are three different type of bubble.
Bubble.makeText(MainActivity.this, "Error message..", Bubble.TYPE_ERROR).show();
Bubble.makeText(MainActivity.this, "Info message..", Bubble.TYPE_INFO).show();
Bubble.makeText(MainActivity.this, "Success message..", Bubble.TYPE_SUCCESS).show();