高仿美团APP页面滑动标题栏渐变效果
Switch branches/tags
Nothing to show
Clone or download
Latest commit b7a5f05 Apr 21, 2017
Permalink
Failed to load latest commit information.
.idea updater README.md Apr 21, 2017
app update README.md Apr 20, 2017
gradle/wrapper First commit. Apr 19, 2017
screenshot add screenshot Apr 21, 2017
.DS_Store delete something. Apr 19, 2017
.gitignore Initial commit Apr 19, 2017
LICENSE Initial commit Apr 19, 2017
README.md updater README.md Apr 21, 2017
build.gradle First commit. Apr 19, 2017
gradle.properties First commit. Apr 19, 2017
gradlew First commit. Apr 19, 2017
gradlew.bat First commit. Apr 19, 2017
settings.gradle First commit. Apr 19, 2017

README.md

ObservableScrollView

高仿美团APP页面滑动标题栏渐变效果,博客讲解请见:高仿美团APP页面滑动标题栏渐变效果

效果图

image

用法

直接复制ObservableScrollView类到项目里,然后让Activity去实现ObservableScrollView.OnObservableScrollViewListener接口并实现对应的方法即可(如果布局里嵌套的是带滑动属性的控件如ListView,注意解决滑动冲突),具体用法请参考Demo,注释很全。