Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ==> Simple Animation?

How can i display a simple animation?

Let's say there is a button on the screen with margin left of 200, and margin top of 200. I need to set the margin left, and top of this button to 0 and show a simple animation.

So basically a simple animation on a button from position 200,200 to position 0,0

like image 361
aryaxt Avatar asked Jul 09 '10 20:07

aryaxt


People also ask

Can I make 3D animation on android?

Toontastic 3D This app allows you to draw, animate, and narrate cartoons. Toontastic is the best 3D animation app that can record your voice and animations and store your animations on your device.

Can I make animation on android?

With over a million downloads, Animation Desk is one of the best animation apps for Android that you can try. It has all the things that make an animation app great—a clutter-free user interface, an adequate amount of options, and a handful of ways to export the finished animation.

How do I animate a view in android?

You can use the view animation system to perform tweened animation on Views. Tween animation calculates the animation with information such as the start point, end point, size, rotation, and other common aspects of an animation.


1 Answers

There are mainly 4 built-in Animations comes up with Android SDK:

  1. AlphaAnimation – transparency changes
  2. RotateAnimation – rotations
  3. ScaleAnimation – growing or shrinking
  4. TranslateAnimation – position changes

So from these....You can implement TranslateAnimation.

You can refer Example here and also Android SDK - TranslateAnimation .

Enjoy!!!

like image 122
Paresh Mayani Avatar answered Oct 21 '22 04:10

Paresh Mayani