Animate image from off screen to center of screen - android

I would like to have an (drawable) image start off the screen and animate it to the middle of the screen.
I have searched around a bit and cannot find a great answer. Some even saying there are problems with starting an animation off the screen.
Is something like this possible?

Checkout this
img.setTranslationX(-screenWidth/2);
img.animate().translationX(0)
.setDuration(1000)
.setStartDelay(400);

Related

Android dialog animation effect

I am new to android development.
I want to display a dialog on activity load.
The animation details:
After some times lets say 2secs, the dialog should be fade away and zoom out.
Finally become a small square in the center of the screen. (both horizontally and vertically)
After that the small square should move to top with effect which forms an icon in the top bar.
Is there anyway to do that?I have gone through several tutorials but cant find an effect like this.
Please help.

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

Stretchable ImageView

I beg you not to downvote my question, because it can duplicate other questions, but i didn't find anything.
I want to do Stretchable (or Resizable) ImageView. Attention to pictures:
1. For example we have this layout (screen)
2. My finger down to screen
3. My finger move to screen bottom. So ImageView zoom
4. My finger up to screen. ImageView size was returned with smooth animation
What name of this ImageView? Or how realize this? What do you think?
this view is something like fading action bar :
https://github.com/ManuelPeinado/FadingActionBar
whe you don't know which view is use than just use Hierarchy Viewer
Launch Your App in emulator
Launch the Hierarchy Viewer in eclipse
and debug your UI
Source

Android slide ImageView from top to bottom

I'm trying to develop a game which has the track sliding down from the top to the bottom. When you start the track(which is a large image) is "out of screen" then it slides from the top and goes out at the bottom. The images might be very large, larger/taller than most screens.
I can animate the image with animations, but Android scales the image to the screen size on load, which I dont want. How can I keep the original size of the image?
I dont think using ScrollView would be good since I dont want the user to scroll the image.
This is what I would like to achieve:
As a quick fix you could try to wrap you ImageView with an AbsoluteLayout. Check an answer to the question How to create a view that is bigger than the screen?
Be aware it's deprecated and for the stable future use you have to get another solution.

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

Categories

Resources