File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 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+ ```
You can’t perform that action at this time.
0 commit comments