Skip to content

Commit

Permalink
readme [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
g4s8 authored Apr 30, 2017
1 parent 8a0704b commit 1688d49
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
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());
```

0 comments on commit 1688d49

Please sign in to comment.