How to create animations and user interfaces in android? - android

For example: Like the game bejeweled. At the beginning the gems are falling down. At the end, the gems are slowing down and stopping.
How i can do like this effects and animations? I mean, i want to give the animations to another class, and when the animations are completed, i will forwarded to the main class.
Is there a good library for this effects or animations in android. Or what is that called? Tweening?
I also want to make animated User Interfaces?
I'm programming with LIBGDX.
Thanks.

LibGDX has its own action API. See Actions of Actors in libgdx to learn more.
There is also a nice tween library which you can use with LibGDX. See Java universal tween engine.

I am not sure if this can help, but you could have a look at this open source framework which is a really good option to develop games in Android:
http://www.andengine.org/

Related

Animate After Effects animations natively in Android

We have a team that will create AE animations (including parallax, sound effects etc.) and I need to play those animations on Android as exactly they are, triggering them by swipe. For Android and AE first thing comes into mind is Lottie, that I've tried for small stuff. But what we need is more advanced and complex.
Only thing that I need to do is taking the AE animation and play them on Android.
Maybe it's possible with Unity, but as I've never worked with Unity, it's out of my knowledge how to do it.
Any kind of help is appreciated.
There is no way you can do complex animation on android using After Effects still you can go to Unity Documentation and search Android Animation to know more. Unity Documentation Android Animation

Interactive animations on Android

This may be a duplicate question, but none of the questions I found were exactly what I had in mind.
A friend and I want to create an App that lets the user play around with 3D objects on the screen. My friend is creating the objects and the animations in Blender or Maya. Therefore, the possible animations will be preset (not being programmatically animated). I have no experience in 3D programming and I naively suggested that he render the animations in Blender and send me all the frames. I would then play the appropriate animation by quickly running through all the frames. Each animation would leave the object in its original position so that it would be ready for the next animation.
Now that I've been thinking about it, that's a lot of images that I have to store in order to make this work. For every object, I would need to have all its frames for all of its animations, which maybe overkill.
Is there another way to play animations in an Android app? I considered just saving the animations as videos and playing them, but that would look horrible for our purpose.
I'd suggest min3D
Take a look at the animated troll example they have.
There are a lot of 3D libraries for Android. I would recommend AndEngine. Alternatively, you can just use the native OpenGL compatibility. Instead, ask him to send you the actual 3D files. Then you can use a library to render them.
EDIT: I just found this link. It'll probably help you. In my opinion, you should go through it and learn the whole package instead of just glancing a bit for this one little project; it'll help in the future.
Yes, there is a way you can manupulate the models you created in Blender. here is an example which uses Open GL in android to animate a 3D model created in Blender Check This Video Out. However it animates the object programatically, frame animation is indeed not worth if you wanna create animations that are long as you will run out of memory quick.

Building animation in Android app

I have done apps which uses only pictures and sound clips. What I want to do is to build an Android app which involves animation. I have seen many of the "Water effect" apps in play store, which has quite good animation effect. One of my them is "Koi Pond". I would like to do the similar kind of app for sand. The detailing of the animation should look good as we see and touch the real sand.
I'm new to animation stuff and have no idea about it. Can anyone please help me out with how to use the detailed animation for Android? I know that it is not possible only with java. Please refer me to any blogs/docs available on this stuff.
Thanx
For such effects (as used in Koi Pond) you will need several pixel shaders. To use it you will need to us OpenGL ES 2.0. I would recommend using a game engine like AndEngine for the basic setup and the shader usage. If you have no experience with shaders it won't be that easy!
I'm not sure if AndEngine is the best choice for that, but it is possible with it.
Check it out http://www.andengine.org/
There are also a couple of shader tutorials in the forum
At first for translate or some other simple animation you can use android native animation method , but for great things you can use , this , I think it's all you want ;)
Regards Hayk Nahapetyan

"drag control" for Android games

I am not very familiar with android development so maybe question will be not really about development process.
I noticed control in a bunch of different games where i can drag circle and in this way unit will move.
This is default control from some library or every developer just writes something similar?
Any examples or tutorials where i can get it?
This is called an Analogue controller and most game development frameworks like AndEngine and LibGDX offer it. Both such Engines are open source, and the code for this component in the AndEngine framework can be found here.
However, you might want to consider using the game engine itself in your app, instead of picking up bits of it and writing your own.

Java Universal tween Engine or ObjectAnimator for Android

I came to know about Java Universal Tween Engine after seeing the app. And the demo app produced some "wow" kind of Animations and also looked promising. But i haven't seen its docs. I read about ObjectAnimator and it is simple to use for common animations like Alpha, Linear, angular.
Please help me in choosing between "objectAnimator" or Java Universal Tween Engine for android App development as i have to do some complex Animations with better performance. And please share any known issues that you came cross while using Java Universal tween Engine.
Well, I won't be able to answer objectively since I made the Tween Engine, but I may provide some hints to let you choose.
Actually, ObjectAnimator may be more easy to use if you want to start directly with simple animations. It has decent performances and will work out-of-the-box.
The Tween Engine supports powerful things like sequences of multiple animations, speed control of the animations, repetitions, yoyo playing, callbacks and much more. However, the fact it is generic requires you to tell it how to access the attributes of your objects (their position, opacity, rotation, etc). The good thing is that you are able to animate every possible attribute of every possible object, not just Views and Drawables. Since the Tween Engine is "Universal", it can be reused to animate your other projects (games, UIs, etc) as long as they are written in Java (they don't have to be related to android). Therefore, the engine is "learn once, reuse anywhere". In fact, the engine is being ported to C# and C++, so you can really reuse it anywhere :)

Categories

Resources