1

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?

Roman Bugaian
  • 354
  • 1
  • 7
  • 22

1 Answers1

1

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.

longi
  • 11,104
  • 10
  • 55
  • 89
  • 3
    it may work, but is has compatibility problems, and won't work on devices running API lower than 11 – Roman Bugaian Sep 18 '13 at 15:09
  • 1
    Which is [only about 10% of devices right now](https://developer.android.com/about/dashboards/index.html), and dropping, so personally I'd still consider it. You'll find your development in general less of a headache if you can drop support for those old releases. – Matt Gibson Nov 28 '14 at 18:34