Skip to content

emanoellucasml/blink-effect-android-lib

Repository files navigation

Blink Effect

A very simple android lib to apply Blink Effect to a view

N|Solid

Blink effect is a very simple library that allows us to apply blink effet to:

  • a view element

How to import

  • Step 1: Add it in your root build.gradle at the end of repositories:
allprojects {
	repositories {
		maven { url 'https://jitpack.io' }
	}
}
  • Step 2: Add the dependency
dependencies {
    implementation 'com.github.emanoellucasml:blink-effect-android-lib:Tag'
}

Usage

private lateinit var btn : Button

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_main)
    actionBar?.hide()
    btn = findViewById(R.id.buttonView)
    btn.setOnClickListener {
        // use of blink-library
        BlinkEffect.blink(btn)
    }
}

Demonstration

About

A very simple android lib to create a blink effect view

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages