Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
apradanas committed Nov 15, 2017
1 parent 9106555 commit f57b92d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# prismoji-android
####A simple Android Emoji library based on Emoji One
#### A simple Android Emoji library based on Emoji One

[![GitHub release](https://img.shields.io/github/release/apradanas/prismoji-android.svg)]()
[![](https://jitpack.io/v/apradanas/prismoji-android.svg)](https://jitpack.io/#apradanas/prismoji-android)

## Installation
###Via Gradle
### Via Gradle
Add it in your root build.gradle at the end of repositories:

```
Expand All @@ -25,14 +25,14 @@ dependencies {
```

##Usage
## Usage
Install the provider. Preverably in Application class.

```
PrismojiManager.install(new PrismojiOneProvider());
```

####Displaying Emoji
#### Displaying Emoji

```
<com.apradanas.prismoji.PrismojiTextView
Expand All @@ -43,7 +43,7 @@ PrismojiManager.install(new PrismojiOneProvider());
```
Call `prismojiTextView.setText` with the String that contains Unicode encoded Emoji

####Inserting Emoji
#### Inserting Emoji

```
<com.apradanas.prismoji.PrismojiEditText
Expand All @@ -56,20 +56,20 @@ To open `PrismojiPopup`:

```
PrismojiPopup prismojiPopup = PrismojiPopup.Builder
.fromRootView(rootView)
.setOnSoftKeyboardCloseListener(new OnSoftKeyboardCloseListener() {
.fromRootView(rootView)
.setOnSoftKeyboardCloseListener(new OnSoftKeyboardCloseListener() {
@Override
public void onKeyboardClose() {
prismojiPopup.dismiss();
}
})
.into(prismojiEditText)
.build();
.into(prismojiEditText)
.build();
prismojiPopup.toggle(); // toggle popup visibility
prismojiPopup.dismiss(); // dismiss the popup
prismojiPopup.isShowing() // return true when the popup is showing
```

##Proguard
## Proguard
No configuration needed.

0 comments on commit f57b92d

Please sign in to comment.