Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chiemy/PullSeparateListView

Repository files navigation

效果图

到达顶部或底部继续拉动时,实现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>

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

About

到顶部或底部时拉动,item分离效果

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /