ObjectAnimator在ListView上的translationY闪烁

时间:2015-05-30 09:24:01

标签: android listview animation objectanimator

我试图根据ListView上的滚动位置移动ListVies的Y轴。我要使用ObjectAnimator

上设置的setOnScrollListener更改我的Y位置

这是在onScroll事件 -

中调用的函数
ObjectAnimator mover1 = ObjectAnimator.ofFloat(postCommentsListView, "translationY",  - currentScrollPositionY);
mover1.setDuration(0);
mover1.start();

问题是当我滚动得非常慢时,翻译会闪烁。但是在相对快速的卷轴上一切正常。

0 个答案:

没有答案