Malinskiy/SuperRecyclerView

horizontal scroll in the top most position

Opened this issue · 0 comments

Hi,
I have an issue with horizontal scrolling inside item when RecyclerView is in the top most position. It starts PullToRefresh gesture when user moves finger not horizontally but slightly down. What i figured out is that it is mostly caught by SwipeRefreshLayout which doe not respect requestDisallowInterceptTouchEvent(boolean b)` method.

    @Override
    public void requestDisallowInterceptTouchEvent(boolean b) {
        // Nope.
    }

See this http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.0.1_r1/android/support/v4/widget/SwipeRefreshLayout.java#SwipeRefreshLayout.requestDisallowInterceptTouchEvent%28boolean%29

Is it possible to use custom one ? For instance extended from regular SwipeRefreshLayout with the only overridden method that calls ViewGroup's implementation ?

Thanks.