android - RadioButton with WebView for displaying Maths Formula using MathJax -


i've done code display maths formula in textview use of following code.

webview.loaddatawithbaseurl("http://bar/", "<script type='text/x-mathjax-config'>"                 +"mathjax.hub.config({ "                  +"showmathmenu: false, "                 +"jax: ['input/tex','output/html-css'], " // output/svg                 +"extensions: ['tex2jax.js','tomathml.js'], "                  +"tex: { extensions: ['amsmath.js','amssymbols.js',"                 +"'noerrors.js','noundefined.js'] }, "                 +"'svg' : { blacker: 30, "                 +"styles: { path: { 'shape-rendering': 'crispedges' } } } "                 +"});</script>"                 +"<script type='text/javascript' "                 +"src='file:///android_asset/mathjax/mathjax.js'"                 +"></script>"                 +"<script type='text/javascript'>getliteralmml = function() {"                 +"math=mathjax.hub.getalljax('math')[0];"                 // below, tomathml() rerurns literal mathml string                 +"mml=math.root.tomathml(''); return mml;"                 +"}; getescapedmml = function() {"                 +"math=mathjax.hub.getalljax('math')[0];"                 // below, tomathmlquote() applies &-escaping mathml string input                 +"mml=math.root.tomathmlquote(getliteralmml()); return mml;}"                 +"</script>"                 //+"<style type=\"text/css\">"                  //+"@font-face { font-family: mycustomfont;"                   //+"src:url(\"file:///android_asset/shruti.ttf\");}"                 //+"body {font-family: 'mycustomfont';}"                 //+"</style>"                 +"<p><span id='math'></span><p><pre><span id='mmlout'></span></pre>"                 +"<script type='text/javascript'>"                 +"document.getelementbyid(\"math\").innerhtml='\\\\["+doubleescapetex(question.getquestion())+"\\\\]';"                 +"</script>","text/html","utf-8",""); 

now want display type of content maths formula or html content in radiobutton

how can create custom view radiobutton displays webview radio.

your appreciated.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -