[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[Android] fix loading disappear when refresh more than one time (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
yxping authored and YorkShen committed Oct 17, 2018
1 parent 4fe0c41 commit 920bd98
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ public void onLoading() {
}
}

@Override
protected void setHostLayoutParams(WXFrameLayout host, int width, int height,
int left, int right, int top, int bottom) {
// The view of WXLoading will always be wrapped by a WXRefreshView at some point
// which is unknowable for front-end so the margins should always be 0 in LayoutParams,
// otherwise it will bring visible layout errors. This means WXLoading do not
// support margin.
super.setHostLayoutParams(host, width, height, 0, 0, 0, 0);
}

@Override
public void onPullingUp(float dy, int pullOutDistance, float viewHeight) {
if (getEvents().contains(Constants.Event.ONPULLING_UP)) {
Expand Down

0 comments on commit 920bd98

Please sign in to comment.