I'm trying to combine these two awesome Android libraries:
https://github.com/emilsjolander/StickyListHeaders
https://github.com/wdullaer/SwipeActionAdapter
I've worked with the SwipeActionAdapter's owner who says it's possible (https://github.com/wdullaer/SwipeActionAdapter/issues/29) but I'm still receiving errors:
08-02 11:33:07.364 1655-1655/com.slaptap.tappedin E/InputEventReceiver﹕ Exception dispatching input event.
08-02 11:33:07.364 1655-1655/com.slaptap.tappedin E/MessageQueue-JNI﹕ Exception in MessageQueue callback: handleReceiveCallback
08-02 11:33:07.380 1655-1655/com.slaptap.tappedin E/MessageQueue-JNI﹕ java.lang.NullPointerException
at com.wdullaer.swipeactionadapter.SwipeActionTouchListener.onTouch(SwipeActionTouchListener.java:419)
at android.view.View.dispatchTouchEvent(View.java:7701)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2210)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1945)
I have my Base Adapter wrapped by the Swipe Adapter. I then Have another adapter (ListStickyAdapter) which extends Decorator Adapter and implements Sticky Adapater.
mAdapter = new ListAdapter(getActivity(), data);
swipeAdapter = new SwipeActionAdapter(mAdapter);
ListStickyAdapter vbsa = new ListStickyAdapter(swipeAdapter);
listView.setAdapter(vbsa);
// is it because of this line? (having to pass the sticky header child list)
swipeAdapter.setListView(listView.getWrappedList())
What am I doing wrong here?