Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull to refresh padding ( for use with toolbar ) #8

Closed
DavidPacioianu opened this issue Apr 13, 2015 · 3 comments
Closed

Pull to refresh padding ( for use with toolbar ) #8

DavidPacioianu opened this issue Apr 13, 2015 · 3 comments
Labels

Comments

@DavidPacioianu
Copy link

There is no way to setProgressViewOffset(boolean scale, int start, int end) like for SwipeRefreshLayout.

@shliama
Copy link
Contributor

shliama commented Apr 13, 2015

Why don't you just align the listview below the toolbar?

@DavidPacioianu
Copy link
Author

I can't do that because the toolbar is in the main layout and the recyclerView is used from a fragment. I use a padding for the recyclerView because I am hiding/showing it on scroll.

@shliama shliama added the bug label Apr 14, 2015
slm pushed a commit to slm/Phoenix that referenced this issue Jul 21, 2015
shliama added a commit that referenced this issue Jul 22, 2015
Add feature to paddingTop BaseView #8
@shliama
Copy link
Contributor

shliama commented Jul 22, 2015

well, thanks to above merge request, I've come back here...
updated @DavidPacioianu method to be able to tweak all paddings and removed null-check, because in that place view cannot be null (it's initiated in the constructor).
You can use it like that:

mPullToRefreshView.setRefreshViewPadding(0, 100, 0, 0);

in this case, refresh view (the one with sun, sky etc.) will be offset by 100 pixels from top.
This is already available from maven repo, version 1.2.2

@shliama shliama closed this as completed Aug 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants