Adding translationX to workspace card to that it is slightly visible

behind the first card

Change-Id: Idc0c169fb92510e74b983160778bd9dbacf29943
This commit is contained in:
Sunny Goyal committed 2017-12-22 11:21:18 -08:00
1 parent 8c8fdec3e9
commit 9328a51271
8 files changed
+36 -18

No files matched your search

@@ -70,7 +70,7 @@ public class SpringLoadedState extends LauncherState {
float myCenter = ws.getTop() + halfHeight;
float cellTopFromCenter = halfHeight - ws.getChildAt(0).getTop();
float actualCellTop = myCenter - cellTopFromCenter * scale;
return new float[] { scale, (desiredCellTop - actualCellTop) / scale};
return new float[] { scale, 0, (desiredCellTop - actualCellTop) / scale};
}
@Override