Back to project page penmanship.
The source code is released under:
Apache License
If you think the Android project penmanship listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.penmanship.example; /*from w w w.ja va2 s. com*/ import android.app.Activity; import android.os.Bundle; import android.view.ViewGroup; import android.widget.ScrollView; import com.mindsnacks.penmanship.Penmanship; /** * Created by tonyc on 1/16/14. */ public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ScrollView markdownHolder = (ScrollView)findViewById(R.id.markdroid_container); ViewGroup demoMarkdownLayout = Penmanship.getMarkdroidView("demo", this); Penmanship.applyRichText(demoMarkdownLayout); markdownHolder.addView(demoMarkdownLayout); } }