sample, add deeplink sample
This commit is contained in:
parent
2356dd4618
commit
4c3fba8929
@ -1,4 +1,16 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"javaClassName": "io.noties.markwon.app.samples.DeeplinksSample",
|
||||||
|
"id": "20200826122247",
|
||||||
|
"title": "Deeplinks",
|
||||||
|
"description": "Handling of deeplinks (app handles https scheme to deep link into content)",
|
||||||
|
"artifacts": [
|
||||||
|
"CORE"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"links"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"javaClassName": "io.noties.markwon.app.samples.image.CoilImageSample",
|
"javaClassName": "io.noties.markwon.app.samples.image.CoilImageSample",
|
||||||
"id": "20200826101209",
|
"id": "20200826101209",
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
package io.noties.markwon.app.samples;
|
||||||
|
|
||||||
|
import io.noties.markwon.Markwon;
|
||||||
|
import io.noties.markwon.app.sample.Tags;
|
||||||
|
import io.noties.markwon.app.sample.ui.MarkwonTextViewSample;
|
||||||
|
import io.noties.markwon.sample.annotations.MarkwonArtifact;
|
||||||
|
import io.noties.markwon.sample.annotations.MarkwonSampleInfo;
|
||||||
|
|
||||||
|
@MarkwonSampleInfo(
|
||||||
|
id = "20200826122247",
|
||||||
|
title = "Deeplinks",
|
||||||
|
description = "Handling of deeplinks (app handles https scheme to deep link into content)",
|
||||||
|
artifacts = MarkwonArtifact.CORE,
|
||||||
|
tags = Tags.links
|
||||||
|
)
|
||||||
|
public class DeeplinksSample extends MarkwonTextViewSample {
|
||||||
|
@Override
|
||||||
|
public void render() {
|
||||||
|
final String md = "" +
|
||||||
|
"# Deeplinks\n\n" +
|
||||||
|
"The [link](https://noties.io/Markwon/app/sample/20200826122247) to self";
|
||||||
|
|
||||||
|
// nothing special is required
|
||||||
|
final Markwon markwon = Markwon.builder(context)
|
||||||
|
.build();
|
||||||
|
|
||||||
|
markwon.setMarkdown(textView, md);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user