Better control of shadow

This commit is contained in:
Moez Bhatti
2016-04-17 17:15:20 -04:00
parent 41b5524cae
commit 448d744406
@@ -375,7 +375,7 @@ public class SwipeBackLayout extends FrameLayout {
@Override
public void computeScroll() {
mScrimOpacity = 1 - mScrollPercent;
mScrimOpacity = mScrollPercent < 0.8f ? 0.4f : (1f - mScrollPercent) * 2f;
if (mDragHelper.continueSettling(true)) {
ViewCompat.postInvalidateOnAnimation(this);
}