Skip to content

Commit 69733a0

Browse files
authored
Update README.md
1 parent 1529e12 commit 69733a0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@ Simple Android Segment Control cloned from iOS 13
33

44
<img src="https://raw.githubusercontent.com/trinnguyen/Android-SegmentView/master/segment_view_sample.jpg" alt="Sample Android SegmentView" width="360"/>
55

6+
## Usage in Android Gradle Module using JitPack.io
7+
- Add it in your root `build.gradle` at the end of repositories:
8+
```
9+
allprojects {
10+
repositories {
11+
...
12+
maven { url 'https://jitpack.io' }
13+
}
14+
}
15+
```
16+
17+
- Add the dependency to module's build.gradle
18+
```
19+
dependencies {
20+
....
21+
implementation 'com.github.trinnguyen:Android-SegmentView:master-SNAPSHOT'
22+
}
23+
```
624

725
## XML layout code
826
```xml

0 commit comments

Comments
 (0)