[android-developers] Re: Text wrapping around image

2009-10-23 Thread devileper
Only the first line can wrap around the image due to a limitation in the StaticLayout class. The logic is very rudimentary and performs a special indent for the first line but ignores this for all other lines. The logic is as follows: width = firstWidth; for (line in text) { line.draw(width);

[android-developers] Re: Text wrapping around image

2009-10-20 Thread focuser
anyone could help? On Oct 17, 10:15 am, focuser linto...@gmail.com wrote: Hi, I know this has been brought up before, but I couldn't find a solution yet. I'd like to get the similar layout on an Activity as this html fragment in a browser, basically making text wrapping around an image:

[android-developers] Re: Text wrapping around image

2009-10-20 Thread Matt Kanninen
I spent a fair amount of time doing the same thing. Html.fromHTML is helpful, but it seems to basically take each img tag it encounters and add it to the textview like a character. So you can have one line of text to the left, and one line to the right, but you cant have multiple lines of text