The MarkedView is the markdown text viewer.
How to use is simple , just specify the contents to an instance of the view.
Call is available from any text from any file.
display image corresponds to jpg, png and gif.
// 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)
Add the dependency
dependencies {
compile 'com.mittsu:markedview:1.0.0@aar'
}
- MarkedView-for-iOS
https://github.com/mittsuu/MarkedView-for-iOS
MarkedView is available under the MIT license. See the LICENSE file for more info.