For some reason, only the alpha transition was applied to my ImageView
(no scaling effect at all).  What am I doing wrong?

My code:

        logo = (ImageView) findViewById(R.id.logo);
        logo.setAnimation(AnimationUtils.loadAnimation(this,
R.anim.myanim));

myanim.xml:

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

<set xmlns:android="http://schemas.android.com/apk/res/android";
android:interpolator="@android:anim/accelerate_interpolator">
    <alpha
        android:fromAlpha="0.0"
        android:toAlpha="1.0"
        android:duration="100" />
    <scale
        android:fromXScale="0.5" android:toXScale="1.3"
        android:fromYScale="1.0" android:toYScale="1.0"
        android:pivotX="50%" android:pivotY="50%"
        android:duration="100" />
    <scale
        android:fromXScale="1.3" android:toXScale="1.0"
        android:fromYScale="1.0" android:toYScale="1.0"
        android:pivotX="50%" android:pivotY="50%"
        android:startOffset="100"
        android:duration="200" />
</set>


excerpt of my layout xml file:

        <ImageView
            android:id="@+id/logo"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:gravity="center_horizontal"
            android:src="@drawable/logo200"/>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to