0

I currently have 2 textviews one is a number and the next is some text. The number appears in the top lefthand corner of the screen and the text is meant to appear next to it. But what I really want is the text to wrap around the number next to and under it. Is there a way of doing this?

Like you can wrap text around an image in something like word.

Somk
  • 11,869
  • 32
  • 97
  • 143
  • Can you show an example (mock-up) of what you'r trying to achieve? I understand your example of wrapping text around images but I don't understand wrapping text around text? – Squonk Jun 01 '11 at 17:56
  • Look at my answer here: http://stackoverflow.com/a/8463221/427225. You can change the Image class to the TextView class and it will work as well. – vortexwolf Dec 11 '11 at 10:15

1 Answers1

1

I don't think this can be accomplished without writing your own class extending ViewGroup. It's either that, or embedding a WebViewfor displaying this part of the screen.

Gabriel Negut
  • 13,860
  • 4
  • 38
  • 45
  • Can a webview only be pointed at external pages. I mean could you write a html page store it on the device and call it for this view? – Somk Jun 01 '11 at 17:54
  • 1
    You can do that, or you can make it load a HTML formatted string; this solution might work better for you, since you have to build the string at runtime. – Gabriel Negut Jun 01 '11 at 17:59
  • ah that sounds ok, have you got anywhere i can see an example? Thanks for your help – Somk Jun 01 '11 at 18:01
  • The [official documentation](http://developer.android.com/reference/android/webkit/WebView.html) has some examples. See especially the `loadData` method. – Gabriel Negut Jun 01 '11 at 19:00