HorizontalVariableListView icon indicating copy to clipboard operation
HorizontalVariableListView copied to clipboard

Problem using HorizontalVariableListView as a header for a standard list view

Open bencallis opened this issue 11 years ago • 0 comments

I have successfully added the horizontal list view as a header to a standard list view. However, I am unable to get the horizontal view to register any click events.

I have implemented the OnItemClickedListener and OnItemSelectedListener as in the example so I guess the issue is related to it being a header view. Wehn inflating the header view and adding it I have tried to tried setting the isSelectable parameter to true and false both seem to have no effect.

           listView.addHeaderView(header, null, false);

I also call

                       listView.setItemsCanFocus(true);

after adding the header view

I have also tried adding

          android:descendantFocusability="afterDescendants"

To the header view to try and force the horizontal list view to get focus first. Any ideas?

bencallis avatar Jun 11 '13 13:06 bencallis