Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Support GESTURE, left/right slip, many transition effect in Android application

Tags:

android

In My application i want to flip the view.. I have seen such animation in Go SMS pro in Android. And Same thing i want in to my android application.

I want to flip the whole activity view. is it possible ? I have seen some example for the flip in android. But in that all example the view is in the same activity. Is it possible to set such view for the different activity. or to do such effect while going from one activity to another ?

Please see the snap for the Flip effect in Androidenter image description here:

If Yes then please give reference to any demo example or code.

like image 706
Rupal Thanki Avatar asked Apr 11 '12 05:04

Rupal Thanki


1 Answers

I have got a question whether it is possible to create a 3D transition effect between two Activities. There is a sample program that does it among the API Demos but this program plays the transition effect between two views of the same Activity. The adaptation to do the same between two activities is not very complicated but has some tricks...

Check out Rotate3dAnimation.java, it was actually copied from the API Demos sample. It uses a Camera (not the hardware camera but an object of the 2D graphics toolkit) to take the views of the layout from different angles. What it does now is a flip. Using the same mechanism, you can implement the cube too. The only problem is that for a cube animation you need both the outgoing and the incoming layout which makes nice separation into standalone activities sort of hard to do (the animation must work on both the incoming and the outgoing layout at the same time).

like image 135
Kutbi Avatar answered Oct 11 '22 16:10

Kutbi