Shows fancy animated bubbles as an Android view
BubbleEmitter
Shows fancy animated bubbles as an Android view.
GRADLE
Add it in your root build.gradle
at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency:
dependencies {
implementation 'com.github.FireZenk:BubbleEmitter:-SNAPSHOT'
}
USAGE
Add the view to your layout:
<org.firezenk.bubbleemitter.BubbleEmitterView
android:id="@+id/bubbleEmitter"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Start emitting bubbles!
bubbleEmitter.emitBubble(size)
CUSTOMIZATION
fun setColors(@ColorInt stroke: Int, @ColorInt fill: Int, @ColorInt gloss: Int)
fun setColorResources(@ColorRes stroke: Int, @ColorRes fill: Int, @ColorRes gloss: Int)
fun setEmissionDelay(delayMillis: Long)
fun canExplode(boolean: Boolean)
More customizations to come!
MORE INFO
Go to sample module