MarkdownView is a simple library that helps you display Markdown text or files on Android as a html page just like Github.


Supporting MarkdownView

MarkdownView is an independent project with ongoing development and support made possible thanks to donations made by these awesome backers. If you'd like to join them, please consider:

Getting started

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.

Step 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
    maven { url "" }

Step 2. Add the dependency

dependencies {
    implementation 'com.github.mukeshsolanki:MarkdownView-Android:<latest-version>'

How to use MarkdownView

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.


and reference it in your activity/fragment and assign the markdown text/file like wise.

MarkdownView markdownView = (MarkdownView) findViewById(;
markdownView.setMarkDownText("# Hello World\nThis is a simple markdown"); //Displays markdown text
markdownView.loadMarkdownFromAssets(""); //Loads the markdown file from the assets folder
File markdownFile=new File("filePath");
markdownView.loadMarkdownFromFile(markdownFile); //Loads the markdown file.