Skip to content
到顶部或底部时拉动,item分离效果
Branch: master
Clone or download
chiemy Merge pull request #1 from bryant1410/master
Fix broken headings in Markdown files
Latest commit 73eaf7f Sep 22, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libs first commit Aug 26, 2014
res 修复从底部或顶部滑动时没有Fling效果的问题 Aug 28, 2014
src/com/chiemy/pullseparate 修复从底部或顶部滑动时没有Fling效果的问题 Aug 28, 2014
.classpath 模式切换 Aug 27, 2014
.gitignore first commit Aug 26, 2014
.project 模式切换 Aug 27, 2014
AndroidManifest.xml
capture.gif
ic_launcher-web.png first commit Aug 26, 2014
proguard-project.txt first commit Aug 26, 2014
project.properties first commit Aug 26, 2014
readme.md

readme.md

效果图

到达顶部或底部继续拉动时,实现Item间的相互分离,有两种模式:

1.全部分离的模式,即屏幕内所有Item都会分离

2.部分分离模式,以点击位置为分界点,部分item分离

用法

在代码中

PullSeparateListView lv = (PullSeparateListView) findViewById(R.id.pullExpandListView);
//全部分离设置为true,部分分离设置为false。默认为false
lv.setSeparateAll(true);

xml

<com.chiemy.pullseparate.PullSeparateListView
    android:id="@+id/pullExpandListView1"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_below="@+id/is_separateAll_cb"
	app:separate_all="true"
    >
</com.chiemy.pullseparate.PullSeparateListView>

另外还添加了点击缩放的效果

You can’t perform that action at this time.