How to implement an App Intro with Shared View animation - android

I am trying to implement an application intro something like in the attached gif.
I know Shared animation isn't supported in Viewpager but I really need to have something like that.
Any help would be appreciated. 

One way would be to draw the animating view in top of view pager using framelayout. And then animate it using scale animation and translate animation when view pager moves..

I am answering my own question just to help others who are looking for the same.
I have found the library for such kind of animation. Below mentioned is the github link
https://github.com/IFTTT/SparkleMotion
However, I used the suggestion given by PrafulBhatnagar and used some overlay views while hiding the actual page views during the viewPager's scrolled/fling state.

Related

view flip (calender flip) 3d animation android

I am trying to have a calendar flip animation on a view. I have looked many examples but i got more confused.
I need to create an animation - Flip a view and show another one.
If you want to implement a calendar flip animation in a flip card manner, you should try using this library.
https://github.com/emilsjolander/android-FlipView
It gives you a general way to do it. You can always extend it further to for finer implementations.
There is a standard ViewFlipper component in Android. It extends ViewAnimator so you should be able to animate it if it doesn't do that by default.
Just to notify that I've developed a new library FlipView that includes basic flip animation and extends ViewFlipper. I mean a fully customizable library where you will be able to swap any kind of views and layouts with any kind of animation and shapes you desire, included the Gmail image flipping.
It differs from the library provided by danialzahid94. Mine is just a simple View not a ListView. By the way at time i write, ListView has been replaced by RecyclerView.
Please have a look.

android animate views inside a scroll view while scrolling

Is there example android code or sample android app which demonstrate animation of the views while scrolling.
For example. In a scroll view some items are not visible when you scroll the items will start to come inside the screen that time i just want to animate that view.
any help would be greatly appreciated.
Thanks.
Download this app. Here you will find tons of libraries of your use. I also seen the library which your are asking in this app. You will find source code links in the app as well.
https://play.google.com/store/apps/details?id=com.desarrollodroide.repos&hl=en
Or You can do one more thing
Just add on scroll listener and some more listeners are there by which you can detect which portion of your scroll view is visible.
Then You can add animation to those views.
Try Listview animation library.
Modify it and use.
https://github.com/nhaarman/ListViewAnimations

Flip a view in ViewPager

Is it possible to flip a view in ViewPager.Basically i want to put several views as in hompage and a view behind every view i.e user must be able to flip the view too.
Yes Very Much Possible.
You need Rotation Animation
Look here
How to make a smooth image rotation in Android?
and
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/animation/Rotate3dAnimation.html
I used the above and implemented successfully what you are asking.
Look for its example in api demo of android

Animated sequence of views

I want to implement view like this:
Inside of this view all children has to be animated while scrolling through them.
I am going to implement it for android 2.x
My first thought was to create custom view extending FrameLayout and manage children views inside programatically, detect gestures and move to next/prev child view animating them (probably scale and transition animation)
What can you advice me, how to achive that, maybe there is an open source project that can help me?
Finally I got what I wan't, there is no simple answer on this question, but simply saying you have to all the work that android UI framework usually does: calculate position of items, add them in proper order, apply different effects (translate, scale, fade out) and draw it on canvas.
To achiev this I follod this extremely useful tutorial (thanks to author)
http://blogs.sonyericsson.com/wp/2010/05/20/android-tutorial-making-your-own-3d-list-part-1/
I am thinking to add my solution somewhere on github once I fix all bugs and make it completelly reusable.

PopupWindow with swiping scrollable views

I'm trying to create a Popupindow in which the views can be changed by swiping. Each view should also be scrollable when larger than the popup window. I also want to move only one view when swiping. I can't find any simple way to do that (the Gallery move several views when swiping).
Is there any widget I missed or do I have to implement everything to achieve that (with ViewFlipper and gesture detection for instance)?
Anybody can help with the best way to do that?
Thanks
I've found and ended up using the fantastic HorizontalPager.

Categories

Resources