KeyboardStateEvents
LiveData notification when keyboard opens or closes, plus some handy extension functions.
Getting started
The first step is to include KeyboardStateEvents into your project, for example, as a Gradle compile dependency:
Sample usage
Call bindKeyboardStateEvents()
in you AppCompatActivity
or FragmentActivity
and observe KeyboardLiveData.state
to get notified:
Just that and you're done! ?
Also, some handy extension functions: