Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 pull_to_refresh 库的本机源代码中,我必须拉动布局的整个高度才能将新项目添加到列表中(见图)。
请告诉我在哪里可以更改必须拉动以刷新列表的高度值?我想在到达标题布局顶部之前添加一个新元素,例如 10 像素 thnx
查看 SourceCode 并看到参数static final float FRICTION = 2.0f;是硬编码的,因此,您可以分叉项目并为该变量放置一个设置器
static final float FRICTION = 2.0f;
https://github.com/chrisbanes/Android-PullToRefresh/blob/master/library/src/com/handmark/pullorefresh/library/PullToRefreshBase.java