mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 19:38:52 +01:00
Better control of shadow
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user