Skip to content

MLSDev/RxKeyboard

Repository files navigation

RxKeyboard

RxKeyboard is a software keyboard watcher based on JavaRx.

Setup

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'
}

Example

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));
                }
            }
        });

Sample App

Authors

License

RxKeyboard is released under the MIT license. See LICENSE for details.

About MLSDev

MLSDev.com

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages