# VegaLayoutManager
a customized LayoutManager - fade and shrink the head itemView when scrolling.
### 实现效果
<img src="capture.gif" width="373" height="532"/><img style width="2px" /><img src="capture2.png" width="480" height="532"/>
Dribbble设计:[链接](https://dribbble.com/shots/3793079-iPhone-8-iOS-11)<br>
IOS实现:[VegaScroll](https://github.com/AppliKeySolutions/VegaScroll)
### 代码思路
RecyclerView最顶部的itemView,会随着手指滑动实现收缩隐藏与放大显示,并伴随recycler的回收与复用。<br><br>
代码比较简单粗暴,使用自定义的LayoutManger,内置SnapHelper。<br>
由于想要在任意时刻都能snap到第一个子View,所以在LayoutManager中用了比较讨巧的方法去设定scroll的最大值。
### 使用方法
1. gradle引入
```gradle
compile 'com.stone.vega.library:VegaLayoutManager:1.0.0'
```
2. java文件中设定LayoutManager
```java
recyclerView.setLayoutManager(new VegaLayoutManager());
```
### demo下载
[点击下载](https://github.com/xmuSistone/VegaLayoutManager/blob/master/app-debug.apk?raw=true)
### License
Copyright 2017, xmuSistone
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
没有合适的资源?快使用搜索试试~ 我知道了~
recyclerview的自定义layoutmanger实现要3d item消失的效果
共11个文件
java:4个
xml:2个
gitignore:1个
5星 · 超过95%的资源 需积分: 10 10 下载量 20 浏览量
2017-09-25
10:46:48
上传
评论
收藏 1.03MB ZIP 举报
温馨提示
只需设置layoutmanger时设置为VegaLayoutManager即可,实现要消失的item 3D缩小消失的效果,文件中有md记载使用方法和gif演示
资源推荐
资源详情
资源评论
收起资源包目录
library.zip (11个子文件)
library
capture.gif 1.07MB
src
androidTest
java
com
stone
vega
library
ExampleInstrumentedTest.java 779B
test
java
com
stone
vega
library
ExampleUnitTest.java 416B
main
AndroidManifest.xml 263B
res
values
strings.xml 73B
java
com
stone
vega
library
StartSnapHelper.java 932B
VegaLayoutManager.java 9KB
README.md 2KB
.gitignore 8B
build.gradle 1KB
proguard-rules.pro 686B
共 11 条
- 1
资源评论
- 冰雪情缘TV2018-03-11不错的资源,很给力,谢谢
昊帅
- 粉丝: 12
- 资源: 27
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功