I have 4 Views I want to move from 0% to 100% width of my screen. ( I use translateX property ). The problem is when the 1st view ends the animation I want it to start again - same goes for the second view etc...
Teo I.
I'm confused how to deal with the problem. Should I use a custom TimeInterpolator ?
Mark M.
probably not, but give me a moment...
Teo I.
Initially all views have visibility set to Gone and each starts with a delay
Teo I.
ok thanks
Sep 16
7:35 PM
Mark M.
wouldn't you just use a repeat
Mark M.
er, repeat count
Mark M.
setRepeatCount() and setRepeatMode() on your ValueAnimator?
Teo I.
that means I have to wait till the last animation finishes. I need to start again the 1st before that moment.
Mark M.
you have four animations, right?
Teo I.
yes
Mark M.
then you use setRepeatCount()/setRepeatMode() on each animation indepedently
Mark M.
or am I missing something?
Sep 16
7:40 PM
Mark M.
it's been a while since I played with low-level object animation stuff, so I'm rather rusty on this subject...
Teo I.
hmmm...I haven't thought the indepedently thing for each animation. I thought it was only for animation sets.
Mark M.
those methods are on ValueAnimator
Teo I.
ok I'll try with the repeat. If you are still around and I have a problem I'll let you know :)
Teo I.
thank you again
Mark M.
you are very welcome
Mark M.
sorry for the sluggish response, but I was wrapping up a conference call when I opened the chat room