【开源】PullSeparateListView

PullSeparateListView

  •  https://github.com/chiemy/PullSeparateListView

    介绍:

    类似于htc one 手机文件管理器文件列表界面的效果:到达顶部或底部继续拉动时,实现Item间的相互分离,有两种模式: 1.全部分离的模式,即屏幕内所有Item都会分离 2.部分分离模式,以点击位置为分界点,部分item分离

    运行效果:

 

使用说明:

在代码中

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

xml

1
2
3
4
5
6
7
8
<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>

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

posted on 2015-03-25 14:58  wasdchenhao  阅读(213)  评论(0)    收藏  举报

导航