ashqal / chromelikeswipelayout Goto Github PK
View Code? Open in Web Editor NEWPull down, and execute more action!
Pull down, and execute more action!
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.
Deploying a new version is as easy as doing a github release :) So you don't have to run a deploy task after every code change
http://stackoverflow.com/questions/30270016/attribute-raduis-has-already-been-defined
Basically if you use another library (in this case CirclePageIndicator) you will run into issues on compile. If I prefix the variables with swipe_ (ie. swipe_radius
) and open a PR can you merge it in? Thanks
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
.
Or maybe I am doing something wrong ?
下滑松开,顶部消失太快,公开一个方法,设置一下消失时间吧。
Error inflating class com.asha.ChromeLikeSwipeLayout
Good for cases where there isn't anything to add a context swipe down to (in case of an empty listview for instance).
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?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.