StickyListHeaders icon indicating copy to clipboard operation
StickyListHeaders copied to clipboard

First list item after header doesn't click

Open alexmprog opened this issue 9 years ago • 3 comments

First list item after header doesn't click, but all other item are clickable.

This my code ListView initialization:

menuListView = new StickyListHeadersListView(getSherlockActivity()); menuListView.setBackgroundColor(getResources().getColor(android.R.color.white)); menuListView.setAreHeadersSticky(true); menuListView.setOnItemClickListener(this); menuListView.setOnHeaderClickListener(this);

In my list for example I have header item with back button and 5 category items. When I click on first category item - nothing is happen(onItemClickwasn't called for this item). But after that I click on second category item - it's work fine - onItemClick was called and second item have 1 position it adapter list. When I try to get list item for position 0, View firstView = mList.getChildAt(0); int firstViewVis = firstView.getVisibility(); firstViewVis is View.Visible. Please, help me as soon as possible - I must made release today.

alexmprog avatar Mar 19 '15 18:03 alexmprog

I can validate this. Anytime I try to click the item after the header the first time it does not work. Also having problems with clicking header item a lot and all of a sudden the clickListener for the non-headers is called...

asmenter15 avatar Aug 12 '15 18:08 asmenter15

+1 same problem

RichardLindhout avatar Sep 30 '15 22:09 RichardLindhout

does anybody fix that?

HosseinArabbeigi avatar Jul 01 '18 13:07 HosseinArabbeigi