Skip to content Skip to sidebar Skip to footer

Some Bugs Appeared When Combining PullToRefresh And SwipeListView Library

I have a list that implementing both of PullToRefresh (the old one) and SwipeListView library. Im following this to combining those library and this to use it in the Activity. My l

Solution 1:

I had the same first issue like you. i think the first item (index 0) is the header.

int _index = index -  listView.getHeaderViewsCount();

I had never met your second problem. You can try this to solve touching problems :

listView.setOnScrollListener(listView.getRefreshableView().getTouchListener().makeScrollListener());

Hope this help


Solution 2:

In order to fix problem no. 2, just add those both Override functions to your adapter:

    @Override
    public int getItemViewType(int position) {
        return position;
    }

    @Override
    public int getViewTypeCount() {
        return 500;
    }

Post a Comment for "Some Bugs Appeared When Combining PullToRefresh And SwipeListView Library"