Renders the background color property
This commit is contained in:
parent
3dbbd37569
commit
1cf336bf56
1 changed files with 5 additions and 1 deletions
|
|
@ -55,10 +55,14 @@ namespace BookAStar.Droid
|
||||||
{
|
{
|
||||||
// Subscribe
|
// Subscribe
|
||||||
editorTemplate.Model = new Markdown.MarkdownViewModel
|
editorTemplate.Model = new Markdown.MarkdownViewModel
|
||||||
{ Content = e.NewElement.Markdown, Editable = e.NewElement.Editable };
|
{
|
||||||
|
Content = e.NewElement.Markdown, Editable = e.NewElement.Editable
|
||||||
|
};
|
||||||
var html = editorTemplate.GenerateString();
|
var html = editorTemplate.GenerateString();
|
||||||
EditorView.LoadDataWithBaseURL("file:///android_asset/",
|
EditorView.LoadDataWithBaseURL("file:///android_asset/",
|
||||||
html, "text/html", "utf-8", null);
|
html, "text/html", "utf-8", null);
|
||||||
|
EditorView.SetBackgroundColor(e.NewElement.BackgroundColor.ToAndroid());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue