Skip to content

Commit 482f0b9

Browse files
authored
Merge branch 'master' into font_awesome_icon
2 parents dca1b3f + d2f1f54 commit 482f0b9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
1+
# Implementation
2+
Go to Settings.gradle, inside repositories block -> <br/>
3+
```
4+
repositories {
5+
maven { url 'https://jitpack.io' }
6+
}
7+
```
18

9+
Now in build.gradle -> <br/>
10+
```
11+
com.github.lostankit7:androidCustomView:font_awesome_icon_v1.1
12+
```
13+
14+
To use font awesome icon through XML
15+
16+
```
17+
<lostankit7.droid.customview.FontAwesomeIcon
18+
android:id="@+id/textView"
19+
android:layout_width="wrap_content"
20+
android:layout_height="wrap_content"
21+
android:layout_centerInParent="true"
22+
android:gravity="center"
23+
android:padding="10dp"
24+
android:text="\uf058"
25+
android:textColor="@color/purple_200"
26+
android:textSize="25sp"
27+
app:background_circular="true"
28+
app:background_color="@color/white"
29+
app:corner_radius="10dp"
30+
android:clickable="true"
31+
app:icon_type="fa_solid"
32+
app:show_ripple="true"
33+
app:show_stroke="true"
34+
app:stroke_color="#A5B439"
35+
app:stroke_width="1dp" />
36+
37+
```

0 commit comments

Comments
 (0)