开发者

Android layout bypass image with text

开发者 https://www.devze.com 2023-01-27 07:04 出处:网络
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 pi

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消