SpringView icon indicating copy to clipboard operation
SpringView copied to clipboard

业务需求:

Open lzx1 opened this issue 8 years ago • 3 comments

能否在SpringView中加入两个设置是否可以下拉和是否可以上啦的方法,有时候需求要求只可以上啦或者只可以下拉。

lzx1 avatar Jun 16 '16 10:06 lzx1

这个应该可以不设置header或者不设置footer就可以做到吧. onLayout中对header和footer做了判空. 如果是null就不会layout. 另外结合枚举Give可以设置需要哪个回调. 研究一下Demo4 和WARNING就是只可以下拉.

cizkey avatar Jun 16 '16 17:06 cizkey

    mSpringview.setGive(SpringView.Give.TOP);

这个已经提供的有

appdev avatar Jun 17 '16 04:06 appdev

非常感谢 ,是我研究的不够清楚。

lzx1 avatar Jun 17 '16 05:06 lzx1