You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MarkdownView is an independent project with ongoing development and support made possible thanks to donations made by [these awesome backers](BACKERS.md#sponsors). If you'd like to join them, please consider:
18
-
19
-
-[Become a backer or sponsor on Patreon](https://www.patreon.com/mukeshsolanki).
20
-
-[One-time donation via PayPal](https://www.paypal.me/mukeshsolanki)
14
+
# Supporting Compose Markdown View
21
15
22
-
<ahref="https://www.patreon.com/bePatron?c=935498"alt="Become a Patron"><imgsrc="https://c5.patreon.com/external/logo/become_a_patron_button.png" /></a>
16
+
Compose Markdown View is an independent project with ongoing development and support made possible thanks to your donations.
17
+
-[Become a backer](https://www.paypal.me/mukeshsolanki)
23
18
24
19
## Getting started
25
-
Its really simple to integrate *MarkdownView* in android. All you need to do make the following change to you build gradle under the app module.
20
+
Its really simple to integrate *Markdown* in android. All you need to do make the following change to you build gradle under the app module.
26
21
27
22
Step 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:
Its fairly simple and straight forward to use *MarkdownView* in you application. Just add the following in your layout where you want to display the markdown file/text.
53
+
- Using Older View System (aka XML)
48
54
55
+
Add a compose view in your xml file like
49
56
```XML
50
-
<com.mukesh.MarkdownView
51
-
android:id="@+id/markdown_view"
57
+
<androidx.compose.ui.platform.ComposeView
58
+
android:id="@+id/markdown"
52
59
android:layout_width="match_parent"
53
-
android:layout_height="match_parent"
54
-
/>
60
+
android:layout_height="match_parent" />
55
61
```
56
62
57
63
and reference it in your activity/fragment and assign the markdown text/file like wise.
0 commit comments