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:
>
> <img src="rainbow.gif" align="left">
> bla bla bla bla bla
> bla bla bla bla bla
> bla bla bla bla bla
>
> I tried the following but no luck yet:
> - None of the current layouts supports this.
> - a TextView and using Html.fromHTML, but that doesn't seem to
> understand the "align" attribute -- No matter what "align" equals to,
> it just places the image in the same line of the first line of text,
> and never aligns multiple lines of text along side the image. Styles
> don't work either.
> - I looked up the doc of ImageSpan, but its verticalAlignment only
> supports "bottom" and "baseline". Should I use "baseline"? I tried
> it but seems no effect, maybe I'm missing something?
> - A hack: using two TextView, one to the right of the image, and
> another below the image, and set the maxLines of the first TextView to
> be approximately the height of the image. But the problem is I
> couldn't get the *last visible character* for the text.
>
> I don't want to use WebView since it seems to be too much overhead
> for such a simple view.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---