Home | History | Annotate | Download | only in app

Lines Matching defs:Animation

36  * <p>Example of using a custom animation when transitioning between activities.</p>
38 public class Animation extends Activity {
39 private static final String TAG = "Animation";
78 Log.i(TAG, "Starting fade-in animation...");
80 startActivity(new Intent(Animation.this, AlertDialogSamples.class));
81 // Supply a custom animation. This one will just fade the new
82 // activity on top. Note that we need to also supply an animation
91 Log.i(TAG, "Starting zoom-in animation...");
93 startActivity(new Intent(Animation.this, AlertDialogSamples.class));
94 // This is a more complicated animation, involving transformations
96 // the duration of the animation we force the exiting activity
105 Log.i(TAG, "Starting modern-fade-in animation...");
106 // Create the desired custom animation, involving transformations
108 // the duration of the animation we force the exiting activity
111 ActivityOptions opts = ActivityOptions.makeCustomAnimation(Animation.this,
113 // Request the activity be started, using the custom animation options.
114 startActivity(new Intent(Animation.this, AlertDialogSamples.class), opts.toBundle());
120 Log.i(TAG, "Starting modern-zoom-in animation...");
121 // Create a more complicated animation, involving transformations
123 // the duration of the animation we force the exiting activity
126 ActivityOptions opts = ActivityOptions.makeCustomAnimation(Animation.this,
128 // Request the activity be started, using the custom animation options.
129 startActivity(new Intent(Animation.this, AlertDialogSamples.class), opts.toBundle());
135 Log.i(TAG, "Starting scale-up animation...");
136 // Create a scale-up animation that originates at the button
140 // Request the activity be started, using the custom animation options.
141 startActivity(new Intent(Animation.this, AlertDialogSamples.class), opts.toBundle());
147 Log.i(TAG, "Starting thumbnail-zoom animation...");
148 // Create a thumbnail animation. We are going to build our thumbnail
150 // not selected, because by the time the animation starts we will
160 // Request the activity be started, using the custom animation options.
161 startActivity(new Intent(Animation.this, AlertDialogSamples.class), opts.toBundle());
168 Log.i(TAG, "Starting no animation transition...");
170 startActivity(new Intent(Animation.this, AlertDialogSamples.class));