ListView items not clickable with HorizontalScrollView inside
Posted
by Felix
on Stack Overflow
See other posts from Stack Overflow
or by Felix
Published on 2010-06-06T21:03:31Z
Indexed on
2010/06/06
21:12 UTC
Read the original article
Hit count: 948
android
|android-listview
I have quite a complicated ListView
. Each item looks something like this:
> LinearLayout (vertical)
> LinearLayout (horizontal)
> include (horizontal LinearLayout with two TextViews)
> include (ditto)
> include (ditto)
> TextView
> HorizontalScrollView (this guy is my problem)
> LinearLayout (horizontal)
In my activity, when an item is created (getView()
is called) I add dynamic TextView
s to the LinearLayout
inside the HorizontalScrollView
(besides filling the other, simpler stuff out). Amazingly, performance is pretty good.
My problem is that when I added the HorizontalScrollView
, my list items became unclickable. They don't get the orange background when clicked and they don't fire the OnItemClickedListener
I have set up (to do a simple Log.d
call).
How can I make my list items clickable again?
© Stack Overflow or respective owner