feat:Add Complext Demo

This commit is contained in:
pengfei.zhou
2019-12-03 09:27:20 +08:00
parent 2e96912a99
commit 6d86b8cfeb
3 changed files with 10 additions and 4 deletions

View File

@@ -30,6 +30,8 @@ import androidx.swiperefreshlayout.widget.CircularProgressDrawable;
import android.view.animation.Animation.AnimationListener;
import pub.doric.utils.DoricUtils;
/**
* @Description: pub.doric.pullable
* @Author: pengfei.zhou
@@ -912,7 +914,7 @@ public class DoricSwipeLayout extends ViewGroup implements NestedScrollingParent
ViewCompat.offsetTopAndBottom(mRefreshView, offset);
mCurrentTargetOffsetTop = mRefreshView.getTop();
if (mRefreshView.getMeasuredHeight() > 0) {
mRefreshView.setPullingDistance((float) mRefreshView.getBottom());
mRefreshView.setPullingDistance(DoricUtils.px2dp(mRefreshView.getBottom()));
}
}