This library is build on top of Snackbar
Screenrecorder-2023-05-08-17-38-27-700.mp4
This library allows you to use :
//Success Snackbar
SnackBar.success(findViewById(android.R.id.content), "Successfully SnackBar :)", SnackBar.LENGTH_LONG).show()
//Info Snackbar
SnackBar.info(findViewById(android.R.id.content), "Info SnackBar :)", SnackBar.LENGTH_LONG).show()
//Warning Snackbar
SnackBar.warning(findViewById(android.R.id.content), "Warning SnackBar :)", SnackBar.LENGTH_LONG).show()
//Error Snackbar
SnackBar.error(findViewById(android.R.id.content), "Error SnackBar :)", SnackBar.LENGTH_LONG).show()
Currently available via JitPack.
To use it, add the jitpack maven repository to your build.gradle
file:
repositories {
...
maven { url 'https://jitpack.io' }
...
}
and add the dependency:
dependencies {
...
implementation 'com.github.gaddarkumar7447:CustomSnackBar:1.0.0'
...
}
Copyright 2023
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.