Want to use the breathing toolbar effect similar to Snapchat in your app? You have reached the right place.
- Initialize -
val snappy = Snappy(this, colorArray)
- Start the magic -
snappy.startBreathing(toolbar)
- When you're done -
snappy.stopBreathing(toolbar)
Easy enough!!! :) For more customization, refer sample application code.
Add it in your root build.gradle at the end of repositories
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Then, add this in you app level build.gradle
dependencies {
implementation 'com.github.aliwaris0572:Snappy:{latest_version}'
}
If you liked my work, consider buying me a cup of ☕ by PayPal