Sunday, 20 January 2013

Android animation

Hello Droid Guys,

In my previous article or blog , i had explain how to show shake animation
in android. Now , in this blog I am covering the other animation.
like:
1, left to right animation in android
2. right to left animation in android
3. fade out animation in android
4. zoom in animation in android
5. slide up animation in android
6. slide down animation in andriod

1.res/anim/slideoutleft.xml

<?xml version="1.0" encoding="utf-8"?>

<translate xmlns:android="http://schemas.android.com/apk/res/android"
    android:duration="@integer/fastAnim"
    android:fromXDelta="0"
    android:interpolator="@android:anim/overshoot_interpolator"
    android:toXDelta="-100%p" />

2. res/anim/slideinright.xml

    <?xml version="1.0" encoding="utf-8"?>
    <translate xmlns:android="http://schemas.android.com/apk/res/android"
        android:duration="@integer/fastAnim"
        android:fromXDelta="100%p"
        android:interpolator="@android:anim/overshoot_interpolator"
        android:toXDelta="0" />

3.res/anim/fadeout.xml


<?xml version="1.0" encoding="utf-8"?>
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
    android:duration="@integer/fastAnim"
    android:fromAlpha="1.0"
    android:toAlpha="0.0" />


 Another link
 1. Shake animation in android

Mukesh Yadav

Hi Guys I am from Delhi working as Web/Mobile Application Developer(Android Developer), also have knowledge of Roboelctric and Mockito ,android test driven development... Blogging has been my passion and I think blogging is one of the powerful medium to share knowledge and ideas....

0 comments:

Post a Comment

 

Copyright @ 2013 Android Developer Blog.

Blog Widget by LinkWithin