Android: the fixed title of amazinglistview is inaccessible
I have a project that uses amazinglistview:
https://code.google.com/p/android-amazing-listview/
I need a clickable button for the fixed header. However, for some reason, the fixed header does not seem to receive any touch events. What can I do to make this button clickable? Is there a way to intercept events and send them to the title?
thank you!
resolvent:
I have the same problem with this component. In my case, the fixed header is a relativelayout with a button I need to use. The actual problem is how to add the fixed header to the list view. It is "drawn" rather than added to the listview hierarchy:
@Override
protected void dispatchDraw(Canvas canvas) {
super.dispatchDraw(canvas);
if (mHeaderViewVisible) {
drawChild(canvas, mHeaderView, getDrawingTime());
}
}
Mheaderview will never be added to the view hierarchy
I don't know if it is possible to receive any user input into the "extracted" view
Maybe we need to design a method to implement the fixed header by adding it to the view hierarchy