liaoinstan / SpringView

🔥 A custom view pull to refresh,support ScrollView,ListView,RecyclerView,WebView and all another views, easy to use
Apache License 2.0
1.94k stars 355 forks source link

业务需求: #13

Open lzx1 opened 8 years ago

lzx1 commented 8 years ago

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

cizkey commented 8 years ago

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

appdev commented 8 years ago
    mSpringview.setGive(SpringView.Give.TOP);

这个已经提供的有

lzx1 commented 8 years ago

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