[android-developers] Help with animation
I have a LinearLayout with 2 vertical components:
View1
View2
I would like to smoothly animate-in View1.
I am using the following animation:
<scale android:fromXScale="1.0" android:toXScale="1.0"
android:fromYScale="0.0" android:toYScale="1.0"
android:pivotX="0" android:pivotY="0"
android:duration="@android:integer/config_longAnimTime"/>
I am doing a:
view1.startAnimation(animation);
view1.setVisibility(View.VISIBLE);
It works, but the problem is that View2 snaps down and View1 fills the
gap. How do I make it so View2 slide down smoothly? I've tried
postponing the setVisibilty() call to after the animation had
finished, but then View1 slides down over View2 which looks even
worse.
Thanks.
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home