如何在PullToRefreshScrollView中禁用Pull-Up-Refresh?

时间:2015-08-05 17:00:48

标签: android android-layout android-fragments android-intent android-activity

我在https://github.com/chrisbanes/Android-PullToRefresh中使用PullToRefreshScrollView。

它包括PullDownToRefresh和PullUpToRefresh,但我不需要PullUpToRefresh,因为我得到一个Bottom MenuDrawer;

我猜可能有一个参数来存储源代码中的刷新操作。请帮我解决这个问题

1 个答案:

答案 0 :(得分:2)

在项目的README文件中,有以下链接:https://github.com/chrisbanes/Android-PullToRefresh#pull-up-to-refresh

如果要禁用PullUpToRefresh行为,可以调用yourView.setMode(Mode.PULL_FROM_START);

希望这有帮助。