Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Support Android 4.0+

![example.gif](./example.gif "example.gif")

Here has a [demo apk](https://github.com/mthli/Knife/releases/download/v1.1/KnifeDemo.1.1.apk "KnifeDemo.1.1.apk"), and it's [source code](https://github.com/mthli/Knife/tree/master/app "KnifeDemo.1.1.apk's source code"), very easy to understand~
Here is a [demo apk](https://github.com/mthli/Knife/releases/download/v1.1/KnifeDemo.1.1.apk "KnifeDemo.1.1.apk"), and its [source code](https://github.com/mthli/Knife/tree/master/app "KnifeDemo.1.1.apk's source code"), very easy to understand~

## Api
## APIs

- `bold(boolean valid)` __bold__ the selected text.

Expand Down Expand Up @@ -45,7 +45,7 @@ Here has a [demo apk](https://github.com/mthli/Knife/releases/download/v1.1/Knif

If you want to get more control of the editable text, just extend KnifeText to get all protected method.

#### Custom
#### Customize

- `app:bulletColor`

Expand All @@ -71,16 +71,16 @@ If you want to get more control of the editable text, just extend KnifeText to g

- Insert image.

## Gradle
## Gradle Usage

At your top-level `build.gradle` file:
In your top-level `build.gradle` file:

repositories {
// ...
maven { url 'https://jitpack.io' }
}

And then at your project `build.gradle` file:
And then in your app module's `build.gradle` file:

dependencies {
compile 'com.github.mthli:Knife:v1.1'
Expand Down