Closed zhouzhuo810 closed 1 year ago
@noties ask for help
Hello @zhouzhuo810 ,
unfortunately it won't be possible to display Markwon in a widget. Widgets use IPC (interprocess communication), so to display a spanned content - only platform spans can be used (that come from Android directly). Markwon uses own spans, so they won't be displayed - not only LaTeX, but others too.
You can take a look at the RemoteViewsSample, which substitutes custom spans with platform ones. But still LaTeX won't be possible, as internally it uses Drawable
, which cannot be sent between processes
I need to display the Latex formula in an Android AppWidget. I use Markwon inside the App, but I can't assign a value because I can't get the TextView object in the AppWidget. Is there any way to solve this?
ask for help