[android-developers] Re: Animation problem

2010-12-29 Thread iced
Thank you for your answer.
I tried all 2^6 combinations of the three flags (fillBefore,
fillAfter, fillEnabled) but the animation still not works. I only want
a pulsate. No matter what I do it is no liquid/smooth animation. It
jerks and jumps. I can't find a solution. I would be grateful for
help.

On 29 Dez., 03:47, John Lussmyer johnlussm...@gmail.com wrote:
 You may want to set the setFillBefore and/or setFillAfter values.  (one of
 them defaults to true, the other to false.)

 On Tue, Dec 28, 2010 at 3:21 PM, iced pascal-h...@t-online.de wrote:
  Hello,
  I'm new here and I don't know if this is the right place for my
  problem. Please excuse me if it's wrong.
  I want to create a scale animation where a view grows a bit from it's
  original size and then shrinks to it's old size.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Animation problem

2010-12-28 Thread iced
Hello,
I'm new here and I don't know if this is the right place for my
problem. Please excuse me if it's wrong.
I want to create a scale animation where a view grows a bit from it's
original size and then shrinks to it's old size.
My XML file:
?xml version=1.0 encoding=utf-8?
set xmlns:android=http://schemas.android.com/apk/res/android;
scale
android:repeatCount=infinite
android:fromXScale=1.0
android:toXScale=1.2
android:fromYScale=1.0
android:toYScale=1.2
android:pivotX=50%
android:pivotY=50%
android:duration=2000
android:startOffset=0 /
scale
android:repeatCount=infinite
android:fromXScale=1.2
android:toXScale=1.0
android:fromYScale=1.2
android:toYScale=1.0
android:pivotX=50%
android:pivotY=50%
android:duration=2000
android:startOffset=2000 /
/set
When I start this animation the view object grows directly by the
factor 1.2. Then the animation starts and the view grows and shrinks
like I want it. After that there is another jump to the original size
of the view. So there are two jumps, which I don't want and I don't
know how to solve this problem.
Please could you help me.
Thank you

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en