tags:

views:

320

answers:

3

Hi,

Is there anyway to wrap a TextView around an image? It's the typical thing that people do in CSS like this http://www.echoecho.com/htmlimages08.htm

Thanks,
Tee

+1  A: 

Why not just use a WebView? You'll have more freedom in the future to customize the layout that way.

If a WebView is too heavyweight for your use case, you'll probably need to render the text and image manually. You may find some relevant information in this android-developers thread.

Roman Nurik
A: 

Another way to accomplish this is to make a image containing the text and the images you want displayed. Obviously heavier weight and a workaround.

You can do this using webview and a workaround to load local content. As of the 1.0 SDK the webview cant load local content without the work arounds described in these articles:

http://www.techjini.com/blog/2009/01/10/android-tip-1-contentprovider-accessing-local-file-system-from-webview-showing-image-in-webview-using-content/

and

http://blog.tourizo.com/2009/02/how-to-display-local-file-in-android.html

Roman's link is to a thread that says you can't do it with text view, so that's not an option at this point.

Ravedave
A: 

Try to look for information here: http://phpforms.net/tutorial/tutorial.html

Lime