Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chiemy/PullSeparateListView
到顶部或底部时拉动,item分离效果
https://github.com/chiemy/PullSeparateListView
Last synced: 2 months ago
JSON representation
到顶部或底部时拉动,item分离效果
- Host: GitHub
- URL: https://github.com/chiemy/PullSeparateListView
- Owner: chiemy
- Created: 2014-08-26T10:25:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-22T02:06:38.000Z (over 7 years ago)
- Last Synced: 2024-04-16T16:10:35.760Z (9 months ago)
- Language: Java
- Size: 9.26 MB
- Stars: 154
- Watchers: 8
- Forks: 78
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-android-ui - https://github.com/chiemy/PullSeparateListView
README
![效果图](capture.gif)
到达顶部或底部继续拉动时,实现Item间的相互分离,有两种模式:
1.全部分离的模式,即屏幕内所有Item都会分离
2.部分分离模式,以点击位置为分界点,部分item分离
## 用法
在代码中PullSeparateListView lv = (PullSeparateListView) findViewById(R.id.pullExpandListView);
//全部分离设置为true,部分分离设置为false。默认为false
lv.setSeparateAll(true);在`xml`中
另外还添加了点击缩放的效果