Office Hours — Today, September 16

Tuesday, September 9

Mark M.
has entered the room
Sep 16
7:25 PM
Mark M.
turned on guest access
7:30 PM
Teo I.
has entered the room
Mark M.
hello, Teo!
how can I help you today?
Teo I.
Hi!
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...
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
ok thanks
7:35 PM
Mark M.
wouldn't you just use a repeat
er, repeat count
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
or am I missing something?
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 :)
thank you again
Mark M.
you are very welcome
sorry for the sluggish response, but I was wrapping up a conference call when I opened the chat room
Teo I.
no problem! :)
8:30 PM
Mark M.
that's a wrap for today's chat
the transcript will be posted to http://commonsware.com/office-hours/ shortly
the next office hours are Thursday at 7:30pm US Eastern Time
have a pleasant day!
Teo I.
thanks and good night
Teo I.
has left the room
Mark M.
turned off guest access

Tuesday, September 9

 

Office Hours

People in this transcript

  • Mark Murphy
  • Teo I.