YuanWenHai / MarkedView-for-Android

The MarkedView is the markdown text viewer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MarkedView Example

Android Arsenal

sample_sc

Introduction

The MarkedView is the markdown text viewer.

Usage

It is a simple module, which enable you to convert any files into initialized view.

// xml
<com.mittsu.markedview.MarkedView
    android:id="@+id/md_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>
// Java code

import com.mittsu.markedview.MarkedView;

・・・

// call from xml
MarkedView mdView = (MarkedView)findViewById(R.id.md_view);
// call from code
// MarkedView mdView = new MarkedView(this);


// set Markdown text pattern.
// contents is Markdown text.
mdView.setMDText(contents);

// load Markdown file pattern.
// mdView.loadFile(filePath)

Installation

Add the dependency

dependencies {
    compile 'com.mittsu:markedview:1.0.1@aar'
}

See Also

License

MarkedView is available under the MIT license. See the LICENSE file for more info.

About

The MarkedView is the markdown text viewer.

License:MIT License


Languages

Language:JavaScript 63.8%Language:Java 21.8%Language:CSS 13.0%Language:HTML 1.3%