Skip to content
Makes a view fluctuate.
Kotlin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app
art
gradle/wrapper
viewgardiumleviosa
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

ViewGardiumLeviosa

Makes a view fluctuate.

Import

  1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  1. Add the dependency
	dependencies {
	        implementation 'com.github.paolorotolo:viewgardiumleviosa:1.0.0'
	}

Usage

ViewGardiumLeviosa adds an extension method to your Views.

You can make the view fluctuate with:

view.startFluctuate()

If you want to customize the animation, you can specify the max delta and the duration of one animcaiton cycle:

val fluctuateDelta = -50
val fluctuateDuration = 500

view.startFluctuate(fluctuateDelta, fluctuateDuration)

Finally, to stop the animation, call:

view.stopFluctuate()
You can’t perform that action at this time.