Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viniciusmo/keyboard-visibility-event-android
A DSL to handle soft keyboard visibility change event written in Kotlin.
https://github.com/viniciusmo/keyboard-visibility-event-android
Last synced: 3 months ago
JSON representation
A DSL to handle soft keyboard visibility change event written in Kotlin.
- Host: GitHub
- URL: https://github.com/viniciusmo/keyboard-visibility-event-android
- Owner: viniciusmo
- Created: 2018-10-25T21:54:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-28T15:38:21.000Z (about 3 years ago)
- Last Synced: 2024-05-19T03:11:37.936Z (6 months ago)
- Language: Kotlin
- Homepage:
- Size: 2.65 MB
- Stars: 18
- Watchers: 2
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-android - Keyboard Visibility Event - A DSL to handle soft keyboard visibility change event. (Libraries / Utility)
- awesome-android-libraries - keyboard-visibility-event-android
README
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:
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```**Step 2.** Add the dependency
```gradle
dependencies {
implementation 'com.github.viniciusmo:keyboard-visibility-event-android:1.0.4'
}
```**Step 3.** Code example
``` kotlin
keyboard {
onClosed { alert("onClosed").show() }
onOpened { alert("onOpened").show() }
}```
Demo
--------