I think this has been asked elsewhere (StackOverflow) but with no
satisfactory answer.

I have a ListView where each row is composed (mostly) of a WebView.

The "problem" is that you can't touch the WebView and fire the
onListItemClick method of ListActivity.

I've tried to set android:clickable="false" in the xml file, but this
also doesn't allow me to "click" on the WebView.

>From another thread (http://groups.google.com/group/android-developers/
browse_thread/thread/684162fdf5a073ec), I've seen others state that
putting a WebView in a ListView is "bad form" (e.g., "I don't see a
situation where a WebView cannot be replaced by a text view or a
combination of other compoenents [sic]. I still think this is a bad
idea."),

Given this opinion, I think I should explain my "situation".

Each row in the ListView will contain a question whose contents
vary.

The contents of the row will require formatted text (bold, italics,
superscript, subscript, etc.) and 1 or more images.  To me, this seems
like an ideal situation for a WebView, because I don't know ahead of
time what the specific order and structure of the text images will be.

So....I guess I have a few questions.

Is it possible to allow users to "click" on a WebView placed in a
ListView and fire onListItemClick?
If so, how?
Given my needs, is there another way to structure my ListView rows
without using a WebView?
If so, what is it?

Thanks for any insight!!!


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to