Return: Listanimation Views and Interpolator [1/2]
PatchSet:
- optimize more:
- call provider values only when needed and do not fire them permanently.
so just do it if scroll state changed.
- as well go out of the setAnimation method as soon as possible. We
handle here methods which get called 10000 times during scrolling
so we need to be as fast as possible.
PS:
- initialize the animation modes default to off just to be sure
PS:
- move state change out of OnScrollListener
- reduce the provider value call to only one call
Signed-off-by: Ayan Mukherjee <mukherjeeayan725@gmail.com>
Change-Id: I12156b3d62ac0ffa775b45c42eb8f424086da425
2 files changed