GithubHelp home page GithubHelp logo

chromelikeswipelayout's People

Contributors

ashqal avatar tomafc330 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chromelikeswipelayout's Issues

Nested RecyclerView fails to scroll

Given the following layout RecyclerView fails to scroll up:

FrameLayout
    com.asha.ChromeLikeSwipeLayout
        android.support.percent.PercentRelativeLayout
            android.support.v7.widget.RecyclerView
            ...

I think it's due to the fact you only take into account the first child of ChromeLikeSwipeLayout to check if it's scrollable or not. This kind of situation must be taken into account since having a layout with a nested RecylcerView it's quite a common scenario.

onNestedPreFling throws error for projects that have minSDK < 21

So I was testing on an older phone (api 15) and used the library and unfortunately it crashes on fling with the following stacktrace:

02-08 17:36:44.324 20427-20427 E/AndroidRuntime: FATAL EXCEPTION: main
                                                                      Process: com.adhoclabs.burner, PID: 20427
                                                                      java.lang.NoSuchMethodError: android.view.ViewGroup.onNestedPreFling
                                                                          at com.asha.ChromeLikeSwipeLayout.onNestedPreFling(ChromeLikeSwipeLayout.java:578)
                                                                          at android.support.v4.view.ViewParentCompat$ViewParentCompatStubImpl.onNestedPreFling(ViewParentCompat.java:124)
                                                                          at android.support.v4.view.ViewParentCompat.onNestedPreFling(ViewParentCompat.java:404)
                                                                          at android.support.v4.view.NestedScrollingChildHelper.dispatchNestedPreFling(NestedScrollingChildHelper.java:252)
                                                                          at android.support.v7.widget.RecyclerView.dispatchNestedPreFling(RecyclerView.java:8675)
                                                                          at android.support.v7.widget.RecyclerView.fling(RecyclerView.java:1797)
                                                                          at android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2437)
                                                                          at android.view.View.dispatchTouchEvent(View.java:7782)
                                                                          at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2316)
                                                                          at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2013)

Looks like we might need to do a version check before call super. for onNestedFling and onNestedPreFling.

How to make changing option easier?

When finger is moving to e.g. right side it's very hard to choose left side option, because screen becomes too small. Is it possible to change moving distance?

Using library inside NestedScrollView

I have CollapsingToolbarLayout with flags app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"

but snapping stops working with this library. is there any layout structure so I can put all this inside my NestedScrollView?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.