I want to achieve android layo开发者_Python百科ut for text and image to be as shown on the left pic, however with ImageSpan and in-lining image into text at start gives me only what's on the right pic.
Are there any solutions to beautifully bypass large image with text?
|-------------| texttexttexttexttext |-------------|
| | texttexttexttexttext | |
| image | texttexttexttexttext | image |
| | texttexttexttexttext | |
|-------------| texttexttexttexttext |-------------| texttexttexttexttext
texttexttexttexttexttexttexttexttext texttexttexttexttexttexttexttexttext
texttexttexttexttexttexttexttexttext texttexttexttexttexttexttexttexttext
texttexttexttexttexttexttexttexttext texttexttexttexttexttexttexttexttext
|
Possible by using an WebView and writing HTML-code. Might also be doable by inserting the HTML into an TextView with Html.fromHtml(String, Html.ImageGetter, Html.TagHandler). See an example of using ImageGetter here.
精彩评论