RxKeyboard is a software keyboard watcher based on JavaRx.
To use this library your minSdkVersion
must be >= 15.
In your build.gradle :
dependencies {
compile 'com.mlsdev.rxkeyboard:library:1.1.1'
compile 'io.reactivex:rxjava:1.0.14'
}
RxKeyboard.instance().requestKeyboardUpdates(this).subscribe(new Action1<KeyboardState>() {
@Override
public void call(KeyboardState keyboardState) {
if (keyboardState.isShow) {
textView.setText(String.format(getString(R.string.show_keyboard_height), keyboardState.keyboardHeight));
} else {
textView.setText(getString(R.string.hidden));
}
}
});
- Sergey Glebov (frederikos), MLSDev
RxKeyboard is released under the MIT license. See LICENSE for details.
RxKeyboard is maintained by MLSDev, Inc. We specialize in providing all-in-one solution in mobile and web development. Our team follows Lean principles and works according to agile methodologies to deliver the best results reducing the budget for development and its timeline.
Find out more here and don't hesitate to contact us!