Cleaning some page animations

-> Fix jump when last page gets delted (issue 10908427)
-> Fade out empty screen
-> If the final page is empty, and that is the current page when
   spring loaded mode ends, animate back to the previous page
   and then fade out the final page. Examples: cancel widget
   or shortcut drop on the final page, scroll to final page and
   drop an icon into a the hotseat, etc.

Change-Id: I13438fb0af6555b6f0b511b7aff51b3972431438
This commit is contained in:
Adam Cohen committed 2013-10-23 14:11:45 -07:00
1 parent 39789cba2b
commit ad4e15cae4
3 files changed
+184 -54

No files matched your search

@@ -52,8 +52,6 @@ public abstract class SmoothPagedView extends PagedView {
}
public float getInterpolation(float t) {
// _o(t) = t * t * ((tension + 1) * t + tension)
// o(t) = _o(t - 1) + 1
t -= 1.0f;
return t * t * ((mTension + 1) * t + mTension) + 1.0f;
}