I have a frame layout contains 2 child, one is a linearLayout with
textview and button, the other is relative layout with text, list box.
The linearlayout is always shown. The relative layout is initial
hidden and only shown when user click the button in the linearlayout,
and hide when other button are click

The relative layout should slide in and slide out (with animation).
All works fine except I can't get the animation work correctly. I try
to start a translate animation(slide in) for the relativeLayout when
it need to show, but it first appear in the screen then start the
animation to slide. How can I do a slide in for the relativelayout
object?

Following is the sample code I do when user click a button to show the
view:

myRelativeLayout.setVisibility(View.VISIBLE);
myRelativeLayout.startAnimation(  myTranslationAnimation );

Any suggestion is appreciated.
Thanks,
Rovi

-- 
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