Android TranslateAnimation after scrollTo() = undrawn view

Posted by user293354 on Stack Overflow See other posts from Stack Overflow or by user293354
Published on 2010-03-14T11:47:58Z Indexed on 2010/03/14 11:55 UTC
Read the original article Hit count: 497

Filed under:
|

This might be a "duh" question but I'm going to go ahead and ask it anyway.

I have an oversized (bigger than the screen) RelativeLayout, and I'm using swipes to start a TranslateAnimation from viewing one part of the layout to another. Say for instance the layout is two screen wide and two screens tall. After the nice animation to shift the screen, I was using View.scrollTo() to set the new position. This works fine going from the first screen (top left at 0,0) to one of the others. When I swipe to animate back to the first screen though, because the View.scrollTo() invalidated that part of the layout (I assume), that part of the layout is all black as I animate through it. I tried a couple things to get it to redraw itself after the scrollTo() but haven't had any luck, so I figured I'd ask here.

thanks! joe d

© Stack Overflow or respective owner

Related posts about android

Related posts about animation