Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds progressViewOffset to RefreshControl
Summary: Add the possibility to define a progress view top offset to RefreshControl on android. As i comment in #6740, contentInset does the trick on IOS. Looking android documentation seems that exists a possible solution: http://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html#setProgressViewOffset(boolean, int, int) This pull request implement that but keeping it simple, only a top offset. For example, now we could put navigation bar over the scrollview (or listview) and define a progressViewOffset on RefreshView in order to start behind the navigation. At this point we could make some kind of coordinator layout to hide/show navigation on scroll. To maintain the default behavior, start point is equal to start point minus progress circle diameter in order to create that progress circle before the start point. Closes #6759 Differential Revision: D3240664 Pulled By: mkonicek fb-gh-sync-id: ccf866272e871811c1c6dcc2a34f5c217967feee fbshipit-source-id: ccf866272e871811c1c6dcc2a34f5c217967feee
- Loading branch information
1 parent
2953a1a
commit f7ce0c1
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters