Ich versuche, ein Bild aus dem HTML in der Textansicht mit Xamarin.Android zu zeigen. Ich habe es geschafft, die HTML zu zeigen, aber das Bild kann nicht angezeigt werden. Alle Ideen sind willkommen.Kann ich ein Bild aus HTML in der Textansicht mit Xamarin.Android anzeigen?
Epub epub = new Epub(Android.OS.Environment.ExternalStorageDirectory.Path + "/Download/testBook.epub");
//Get book title (Every epub file can have multiple titles)
string title = epub.Title[0];
//Get book authors (Every epub file can have multiple authors)
string author = epub.Creator[0];
//Get all book content as plain text
string plainText = epub.GetContentAsPlainText();
//Get all book content as html text
string htmlText = epub.GetContentAsHtml();
//Get some part of book content
ContentData contentData = epub.Content[0] as ContentData;
//Get Table Of Contents (TOC)
List<NavPoint> navPoints = epub.TOC;
String text = String.Format("<!DOCTYPE html PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<HTML>\n <HEAD>\n <TITLE>\n A Small Hello \n </TITLE>\n </HEAD>\n<BODY>\n <H1>Hi</H1>\n <P style=\"color: red\">This is very minimal \"hello world\" HTML document.</P> \n</BODY>\n</HTML>");
ePubEditText.CustomSelectionActionModeCallback = new CustomSelectionMenu(this);
ePubEditText.TextFormatted = Html.FromHtml(htmlText);