I have the same problem with this component. In my case, the pinned header is a relativelayout that has a button that I need to use. The real problem is how the added title is added to the list. It is "drawn" and not added to the list hierarchy:
@Override protected void dispatchDraw(Canvas canvas) { super.dispatchDraw(canvas); if (mHeaderViewVisible) { drawChild(canvas, mHeaderView, getDrawingTime()); } }
mHeaderView is never added to hierachy view ...
I do not know if it is possible to view views that are "rendered" to receive any user input.
Perhaps we need to develop a way to implement the pinned header by adding it to the hierachy views ...
source share