-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
# RxKeyboard | ||
Android reactiveX software keyboard | ||
RxJava2 bindings for android keyboard's `InputMethodManager` | ||
|
||
[![Build Status](https://img.shields.io/travis/g4s8/RxKeyboard.svg?style=flat-square)](https://travis-ci.org/g4s8/RxKeyboard) | ||
[![License](https://img.shields.io/github/license/g4s8/RxKeyboard.svg?style=flat-square)](https://github.com/g4s8/RxKeyboard/blob/master/LICENSE) | ||
[![Bintray](https://img.shields.io/bintray/v/g4s8/maven-android/com.g4s8.rxkeyboard.svg?style=flat-square)](https://bintray.com/g4s8/maven-android/com.g4s8.rxkeyboard/_latestVersion) | ||
|
||
## Dependencies | ||
depends on RxJava2 '2.0.7' version: | ||
```gradle | ||
dependencies { | ||
"io.reactivex.rxjava2:rxjava:2.0.7" | ||
} | ||
``` | ||
|
||
## Usage | ||
### show android keyboard async | ||
```java | ||
final RxSoftKeyboard keyboard = new RxAndroidSoftKeyboard(context); | ||
keyboard.show(editTex, ShowFlags.NONE).subscribe(() -> callback()); | ||
``` | ||
### hide android keyboard async | ||
```java | ||
final RxSoftKeyboard keyboard = new RxAndroidSoftKeyboard(context); | ||
keyboard.hide(view.getWindowToken(), ShowFlags.NONE).subscribe(() -> callback()); | ||
``` |