Home

Awesome

<p align="center"> <img src="https://raw.githubusercontent.com/viniciusmo/keyboard-visibility-event-android/master/logo.png"> </p> <p align="center"> <img src="https://img.shields.io/badge/kotlin-v1.2.71-blue.svg" alt="Kotlin"> <img src="https://circleci.com/gh/viniciusmo/keyboard-visibility-event-android.svg?style=shield" alt="Build Status"> <img src="https://img.shields.io/badge/dependencies-up%20to%20date-brightgreen.svg" alt="Dependencies"> <img src="https://img.shields.io/github/issues/viniciusmo/keyboard-visibility-event-android.svg" alt="GitHub Issues"> <img src="https://img.shields.io/badge/contributions-welcome-violet.svg" alt="Contributions welcome"> <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"> </p>

About

A DSL to handle soft keyboard visibility change event written in Kotlin.

How to use?

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.viniciusmo:keyboard-visibility-event-android:1.0.4'
}

Step 3. Code example

keyboard {
    onClosed { alert("onClosed").show() }
    onOpened { alert("onOpened").show() }
}

Demo

<p align="center"> <img src="https://raw.githubusercontent.com/viniciusmo/keyboard-visibility-event-android/master/keyboard_example.gif" width="40%" height="40%"> </p>

Special thanks

<a href="https://github.com/yshrsmz">@yshrsmz</a></br> <a href="https://github.com/amadeu01">@amadeu01</a>