Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android layout bypass image with text

Tags:

android

layout

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
|
like image 202
dykzei eleeot Avatar asked Jul 15 '26 13:07

dykzei eleeot


1 Answers

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.

like image 89
Dahlgren Avatar answered Jul 18 '26 04:07

Dahlgren