Question

This question is about performance. My goal is to make an animation which flips view vertically. What is better, to flip the actual View inflated from XML, or make a snapshot of that view and flip bitmap image?

One of the ways to flip is described here: http://2cupsoftech.wordpress.com/2012/09/18/3d-flip-between-two-view-or-viewgroup-on-android/

But how performant is it?? And isn't better to flip a bitmap?

Was it helpful?

Solution

I would suggest using card flip animation as described here. It works fine. (But it depends on your View as well)

Snapshots are heavy in memory. Besides, you have to create the second snapshot too, if the second Activity isn't loaded yet.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top