Skip to content

Commit a65f430

Browse files
committed
Update README.md
Create section "Download"
1 parent 08d7fd0 commit a65f430

1 file changed

Lines changed: 15 additions & 24 deletions

File tree

README.md

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,23 @@ Compatibility
2525
This library is compatible from API 3 (Android 1.5).
2626

2727

28-
Example
29-
-------
28+
Download
29+
--------
3030

31-
``` xml
32-
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
33-
xmlns:app="http://schemas.android.com/apk/res-auto"
34-
android:layout_width="match_parent"
35-
android:layout_height="match_parent">
31+
Gradle:
3632

37-
<com.devspark.robototextview.widget.RobotoTextView
38-
android:layout_width="wrap_content"
39-
android:layout_height="wrap_content"
40-
app:typeface="roboto_thin"/>
41-
</FrameLayout>
33+
```groovy
34+
compile 'com.github.johnkil.android-robototextview:robototextview:2.2.0'
35+
```
36+
37+
Maven:
38+
39+
```xml
40+
<dependency>
41+
<groupId>com.github.johnkil.android-robototextview</groupId>
42+
<artifactId>robototextview</artifactId>
43+
<version>2.2.0</version>
44+
</dependency>
4245
```
4346

4447

@@ -115,14 +118,6 @@ spannable.setSpan(span, 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
115118
Gradle
116119
------
117120

118-
Android-RobotoTextView library is now pushed to Maven Central as a AAR, so you just need to add the following dependency to your build.gradle.
119-
120-
``` xml
121-
dependencies {
122-
compile 'com.github.johnkil.android-robototextview:robototextview:2.1.0'
123-
}
124-
```
125-
126121
If you intend to use is not all fonts, the extra fonts can be removed.
127122

128123
``` xml
@@ -141,10 +136,6 @@ android.applicationVariants.all{ variant ->
141136
}
142137
```
143138

144-
Example Gradle project using Android-RobotoTextView:
145-
146-
* [Android-RobotoTextView-Gradle-Sample](https://github.com/johnkil/Android-RobotoTextView-Gradle-Sample)
147-
148139

149140
Developed By
150141
------------

0 commit comments

Comments
 (0)