Automatic animations on Layout Change If you want to animate views in a layout without writing big codes. Here is a Simple way. Find the root element of the layout and add this property to it. Adding Manual Animations Fade Out Animation Fade In Animation Move Down by height Translate animate to origin Position Adding Duration Chaining Animations… Read More »
Material Design has changed the way users interact with the apps. Reveal is a new animation introduced in Android L that animates the view’s clipping boundaries. Reveal animations provide users visual continuity when you show or hide a group of UI elements. This animation is often times used in conjunction with a floating action button. The ViewAnimationUtils.createCircularReveal() method… Read More »
Today’s post is about animation, a beautiful animation, exploring capabilities of android. You can click on the link to download the code. Here we will have three java classes and no XML files. 1. GraphicsActivity.java 2. PictureLayout.java 3. Sweep.java At first we start with PictureLayout.java Now our second java file, GraphicsActivity.java No need to declare this activity in… Read More »
You can read more about ImageSwitcher here http://developer.android.com/reference/android/widget/ImageSwitcher.html Click on the link below to download the code. This is the layout that contains the ImageSwitcher What we will do is we will load some images into the Gallery and then load each image into the ImageSwitcher on clicking on each item in the Gallery. Here is the java… Read More »
This is a simple example of how to animate a drawable in Android. This example is from the official android demo applications. Here we have 5 java classes. AnimateDrawable.java AnimateDrawables.java GraphicsActivity.java PictureLayout.java ProxyDrawable.java AnimateDrawable.java AnimateDrawables.java GraphicsActivity.java PictureLayout.java ProxyDrawable.java Download the complete source code from here Join the Forum discussion on this post
Here is a simple example for cascade animation of a listview in android. We use these classes for achieving this. 1. AnimationSet Represents a group of Animations that should be played together. The transformation of each individual animation are composed together into a single transform. If AnimationSet sets any properties that its children also set (for example, duration… Read More »
Hello all…. This is going to be a big post.. Check out my previous post for a rotate3D animation between a ListView and an Image. How to create a rotate 3D Animation between a ListView and an ImageView in Android? Today I will show you different types of Animations using ViewFlipper in a textView. Here we have 4… Read More »
Hello everyone… Here I am explaining two methods on how to create a blinking textview in Android. One with the help of Animation class and other with a Logic. Now let’s see that.. Place a textview with an id of “tv” in your layout and attempt this. Download the complete android source code from below. .