replete-android
replete-android copied to clipboard
[WIP] Animate history entries
Resolves #18

That's cool! It is difficult to see from the animation above, but if you try this on an iOS device, the form entered animates in slightly before the evaluation result, which gives a pleasing cause / effect feeling. I can't recall if I coded anything to do this, other than perhaps animating the input, evaluating and then animating the output. I tried looking in the iOS code and didn't see any evidence of specifically delaying the output relative to the input. (It looks like they both animate in over a period of 50 ms).
Oh, wait. Looking again, even though the animation duration is 50 ms, there is indeed a delay between the form entry and the evaluation of another 50 ms here https://github.com/replete-repl/replete-ios/blob/b08f543e3f504d7ca79a004d906e67fad416474c/Replete/ReplViewController.swift#L461
Yeah, I'm looking into ways of doing this on Android. 50ms delay before evaluating a form seems legit as well.