HorizontalVariableListView
HorizontalVariableListView copied to clipboard
Using HorizontalListView as a Header for a standard list view. Interaction problems
Hi,
I am using HorizontalListView as a header for a standard listView. It is working well however sometimes the HorizontalListView fails to respond to interaction. The only way to get the HorizontalListView to respond to touches is to scroll it out of view and then scroll it back into view.
Any idea what could be causing this?
The Header may be calling the onItemClick event of the ListView. Try disabling the ListView's onClick for the first element. You can do this by creating your own ListView class and disable the OnClick for position 0.
if (position==0) { view.setOnClickListener(null); }