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

[WEEX-646][Android] fix loading disappear when refresh more than one time #1641

Merged
merged 1 commit into from
Oct 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
YorkShen marked this conversation as resolved.
Show resolved Hide resolved
}

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