I want to achieve android layout 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With