Animation in Android - android

I want my images which will be moving on the screen to get blasted,say I am writing an application where a balloon is moving on my emulator from bottom to top and on touching, the balloon,it should burst. Is that possible for me?If so how do I write the code for the bursting of the image on touching it? (here image is balloon).Any help would be appreciated,I am in real need of it..

Related

How to move an image smoothly across Imageview Android

I have large landscape image, I want to move that image smoothly across the screen without loosing aspect ratio. If you cant understand my question, please have a look at Android Newsstand app in that the cover image on top of the screen moves smoothly across the screen back and forth. how can i achieve that. please have a look at the image attached. The background image needs to move smoothly to the right when it reaches end it should move back to left.. Where should i start ?. Thanks in advance.
Update: Solution
PanningView is a library which implements the animated background in the now playing screen of the Play Music app.
Have a look at this library https://github.com/flavioarfaria/KenBurnsView
It is exactly what you are asking i hope :-)
Also do give a look at my this, which is modified ken burns view
https://github.com/HasanFaraaz/BackBurn

Showing multiple images in Android Canvas for Android Game

I have three different images and i want to write a code which will randomly select any of these images and display it at the top of the screen.
Then this image will move downwards and once it reaches the bottom of the screen the image will disappear from the screen.
Now this logic should be continued in the loop where these images will keep on appearing at the top and move towards the bottom of the screen.
I am unable to figure out a way for this. I am trying this on the Canvas.
Basically these three images are kind of Weapons (one is arrow, another is bomb and third one is missile). I want a continuous loop where these images will keep on occurring at the top of the screen and moves downwards and disappear once they reach the bottom.
Can anyone please help me with this?

Android - Image entrance animation

I want to create an effect similar to Facebook Home Lock screen here. Images with Burns effect.
Images(wider than the screen) start with it's left part shown and scroll smoothly to right.
I've tried to View.animate.x(-50.0f) but the image appears cropped when it moves. (I used scaleType=center and the image is larger than the screen)
Any ideas?
Thanks

Image auto scrolling in android

I want to create an image auto scrolling for an outer-space type of game. To make it more exact, I want to load 2 background image that uses a single image occupying the whole screen and auto-scroll it alternatively to create an animation that the background image is moving. Don't get confused with auto scrolling and and shifting to another image automatically. I really meant auto scrolling like moving background using 1 image.
I did some research but what I saw are segments of java codes that made me confused. If possible can anyone provide me an example? From loading the image from xml (should I use an imageview with this? or just set the background image of the layout?) and how I should process it in java code to make an image autoscrolling.
Any ideas guys? Thanks! Sorry for asking too much.

how to create a box at the bottom right of my application that runs the android camera

So, I have an application that uses a canvas and animated a moving block. What I would ultimately like to do is have the camera running capturing the user's face without showing the camera screen on the app or have a box at the bottom right of my screen that showing what the camera sees.
Is it possible to have a mini screen at the bottom right of my app that is displaying the camera or does the camera have to take the full screen?
Or if it is possible just to quickly snap a picture and display a bitmap without losing my application, that would be fine also.
Any help would be great!
Thanks.
Is it possible to have a mini screen at the bottom right of my app that is displaying the camera or does the camera have to take the full screen?
It is possible, See the 1st Screenshot here. Theirs is in top left instead of bottom right, but it should work just the same. In this Qik application the full screen shows the other person you are talking with, and the small box shows the live view from your camera.
I wouldn't know how they did that, but I imagine if you follow along with Building a Camera App in the docs it would get you most the way there. You just need to adjust the size of the preview canvas, and figure out how to use the front camera instead of back.

Categories

Resources