todou / appbarlayout-spring-behavior Goto Github PK
View Code? Open in Web Editor NEWOne Behavior help AppBarLayout to scroll spring
One Behavior help AppBarLayout to scroll spring
Spring with Tab AppbarLayout 有滑动冲突现象
用力向下滑之后在往上回弹的之前会卡顿一下再往上回弹,请问如何处理呢
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/math/MathUtils;
at android.support.design.widget.AppBarLayoutSpringBehavior.setHeaderTopBottomOffset(AppBarLayoutSpringBehavior.java:288)
at android.support.design.widget.AppBarLayoutSpringBehavior.setHeaderTopBottomOffset(AppBarLayoutSpringBehavior.java:262)
at android.support.design.widget.AppBarLayoutSpringBehavior.setHeaderTopBottomOffset(AppBarLayoutSpringBehavior.java:19)
at android.support.design.widget.HeaderBehavior.scroll(HeaderBehavior.java:224)
at android.support.design.widget.AppBarLayout$Behavior.onNestedScroll(AppBarLayout.java:843)
at android.support.design.widget.AppBarLayout$Behavior.onNestedScroll(AppBarLayout.java:758)
at android.support.design.widget.CoordinatorLayout.onNestedScroll(CoordinatorLayout.java:1715)
at android.support.v4.view.ViewParentCompatLollipop.onNestedScroll(ViewParentCompatLollipop.java:60)
at android.support.v4.view.ViewParentCompat$ViewParentCompatLollipopImpl.onNestedScroll(ViewParentCompat.java:177)
at android.support.v4.view.ViewParentCompat.onNestedScroll(ViewParentCompat.java:328)
at android.support.v4.view.NestedScrollingChildHelper.dispatchNestedScroll(NestedScrollingChildHelper.java:163)
at android.support.v7.widget.RecyclerView.dispatchNestedScroll(RecyclerView.java:10161)
at android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1654)
at android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2764)
at android.view.View.dispatchTouchEvent(View.java:10012)
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Failed to transform file 'appbarspring-1.0.9.aar' to match attributes {artifactType=processed-aar} using transform JetifyTransform
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Failed to transform file 'appbarspring-1.0.9.aar' to match attributes {artifactType=processed-aar} using transform JetifyTransform
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Failed to transform file 'appbarspring-1.0.9.aar' to match attributes {artifactType=processed-aar} using transform JetifyTransform
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Failed to transform file 'appbarspring-1.0.9.aar' to match attributes {artifactType=processed-aar} using transform JetifyTransform
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Failed to transform file 'appbarspring-1.0.9.aar' to match attributes {artifactType=processed-aar} using transform JetifyTransform
Show Details
Affected Modules: app
可以告知我NestedFixFlingScrollView和原版NestedScrollView修改了哪些内容吗》,我看两个类基本一致,没看到具体哪里有修改,我希望按照NestedFixFlingScrollView的编写思路,完成一个NestedFixFlingWebView的编写。谢谢。
remove android:allowBackup="true" ?
This library no longer work with new versions
Totally waste my days.. can't change color dynamically. even not support in api 26
CollapsingToolbarLayout里面嵌套布局,下拉图片没有拉伸。
android.support.design.widget.AppBarLayoutSpringBehavior#updateAppBarLayoutDrawableState(){
final boolean changed = layout.setCollapsedState(collapsed); -> final boolean changed = layout.setLiftedState(collapsed);
}
Error:Could not find com.android.support:appcompat-v7:24.2.1.
Required by:
XXXX:app:unspecified
XXXX:app:unspecified > com.github.todou:appbarspring:1.0.2
Please install the Android Support Repository from the Android SDK Manager.
Open Android SDK Manager
只有在添加该库依赖会出现这种情况,去掉就可以正常编译了。不知道什么原因?
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library [com.github.todou:appbarspring:1.0.1] aar\com.github.todou\appbarspring\1.0.1\AndroidManifest.xml
我用华为的手机,弹性效果有个bug,向下滑动会先停顿下,然后再反弹上去,那个我又用小米的手机测试了下,没有此问题,希望你能兼容下
Hi
It is lag in huawei rom, please fix it
Mode: FRD-AL 10
EMUI 4.1
Android 6.0
一样的布局,一样的写法,在fragment不行啊
scroll|exitUntilCollapsed时一往下滑头部就展开了,有没有哪个方法可以设置滑动到最小高度或者最顶再展开
ERROR: Unable to resolve dependency for ':app@mockDebug/compileClasspath': Failed to transform artifact 'appbarspring.aar (com.github.todou:appbarspring:1.0.9)' to match attributes {artifactType=jar}
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@mockDebugAndroidTest/compileClasspath': Failed to transform artifact 'appbarspring.aar (com.github.todou:appbarspring:1.0.9)' to match attributes {artifactType=jar}
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@mockDebugUnitTest/compileClasspath': Failed to transform artifact 'appbarspring.aar (com.github.todou:appbarspring:1.0.9)' to match attributes {artifactType=jar}
Show Details
Affected Modules: app
Hey, could you make the behavior support androidx as well ?
I found that you call setCollapsedState() in the source code. But it seems that there is no such a method in AppBarLayout ... The app will crash when use this behavior ...
无法引入
behavior中只判断了nestedScroll,但是如果滑动的是appbarlayout本身的话,nestedScroll是不会触发的,直接执行的getTopBottomOffsetForScrollingSibling方法,然后动画就会停顿一1秒再弹回来,我有尝试1.0.4和最新版本,都是有这个问题的,修改valueAnimation似乎没什么太大作用,还是要卡一下的
I get this after cloning the repository and trying to build:
Error:(4, 0) Could not get unknown property 'compile_sdk_version' for object of type com.android.build.gradle.AppExtension.
Open File
We are using 1.0.3 version of Appbarspring library in one of our projects.
For our legal policies, we have to see the License file for 1.0.3 version.
1.0.3 version is not tagged in github repository.
Could you please add a tag for 1.0.3 version?
Hi, thanks for your demo.
I have encountered another issue which happens only when i define a fullscreen image in CollapsingToolbarLayout.
Sometimes when i scroll up to see the content (RecyclerView) below the Image and then scroll down, the image is scrolled automatically until it fit to fullscreen. At that time, i can not re-scroll up anymore to see the the content below the Image.
You can refer to this Video : https://youtu.be/Qw-HLNj5ERU at the 00:25s when i keep trying scroll up (but no success) or at the end of this video.
For the FullScreen Image, layout_collapseMode was none or parallax
For AppBarLayout, the behavior was appbar_spring_behavior or appbar_fling_fix_behavior
Tested device : Nexus 5x, android 6.0.1
Could you fix this issue please.
Thanks.
The given artifact contains a string literal with a package reference 'android.support.design.widget' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.
[Processor] Library '/Users/apple/.gradle/caches/modules-2/files-2.1/com.github.todou/appbarspring/1.0.8/5e3b335df3d1a43f52d358545551409182bd4a99/appbarspring-1.0.8.aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
如题,运行起来一直崩溃。
When i use design:27.1.1 then page will crash because,
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/design/widget/MathUtils;
at android.support.design.widget.AppBarLayoutSpringBehavior.setHeaderTopBottomOffset(AppBarLayoutSpringBehavior.java:294)
at android.support.design.widget.AppBarLayoutSpringBehavior.setHeaderTopBottomOffset(AppBarLayoutSpringBehavior.java:16)
at android.support.design.widget.HeaderBehavior.scroll(HeaderBehavior.java:222)
在fragment中写同样的代码 只是去掉toolbar。
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.