Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
emrekose26 committed Oct 18, 2017
1 parent a67b905 commit 12ac7b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
}

#### 2.Add this dependency in your app level `build.gradle:
#### 2.Add this dependency in your app level `build.gradle`:
dependencies {
...
compile 'com.github.emrekose26:RecordButton:1.0.0'
Expand All @@ -25,6 +25,7 @@

# Usage
### 1. In your layout XML file:
```xml
<com.emrekose.recordbutton.RecordButton
android:id="@+id/recordBtn"
android:layout_width="match_parent"
Expand All @@ -35,9 +36,11 @@
app:progressColor="@color/colorPrimary"
app:progressStroke="15"
app:recordIcon="@drawable/ic_keyboard_voice_white_36dp" />
```

### 2. In your class file:

```java
RecordButton recordButton = (RecordButton) findViewById(R.id.recordBtn);

recordButton.setRecordListener(new OnRecordListener() {
Expand All @@ -51,6 +54,6 @@
Log.e(TAG, "onRecordFinish: ");
}
});
```

# License

0 comments on commit 12ac7b4

Please sign in to comment.