Getting rid of the blink after a TranslateAnimation

by Mark » Fri, 11 Feb 2011 11:40:58 GMT

Sponsored Links
 I'm using TranslateAnimation  to actually move a View from one place
to another, however from what I can google no one has managed to
actually do this without having the View blink out for a second at the
end of the animation...  If you've managed to do this without the
blink please share.

Has anyone tried doing the translate themselves with AbsoluteLayout?
It looks like I'll have to duplicate the translate functionality by
using a Handler to act as a run loop and move the View myself? A
handler isn't a separate thread right? I just use it to to call a move
function every X ms?


Re: Getting rid of the blink after a TranslateAnimation

by Hari Edo » Fri, 11 Feb 2011 22:50:18 GMT

 Note that the usual matrix-manipulating animations don't change the
hit-testing for a view, so you have to actually move the real view
if you plan on animating a view that is touchable.

My app, "Qwiz - Hiragana", uses a LOT of drag and drop of views,
and touchable views that move around on their own initiative.

I implemented a true Animation class that adjusts the view's
position instead of manipulating the drawing transform matrix.
Then you don't need to reinvent the wheel of timing and iterating
and interpolating things (and you can use all of the other fun
iterators to bounce or wiggle the view).  I use a FrameLayout to
support moving things around by their margin coordinates, instead
of an AbsoluteLayout, but the idea is the same.


Sponsored Links

Other Threads

1. Emulator is not coming up if we will do the changes in CUPCAKE version


If iw ill do any changes in the External folder of Cupcake version i
am unable to get the emulator Up.Emulator stops at Android(Booting
stage) screen page itself.

Kindly do the needful,if anyone is having the update regarding the

Thanks and Regards


2. Is there any guides for porting android into x86?

Dear friends:
        Is there any doc exist for guiding porting android into x86?
Such as todo lists, how to do,what to do? Thanks!


3. Is there any version exist that can be directly used in x86 based netbooks

4. Android on HTC Alpine

5. gl functions not working, egl functions are working - android port to Overo TI OMAP 3503

6. How can i get the string from edittext?

7. Creating and showing a view/window from a Service