android - Switching between activities with java animation (defined programmatically) -
if have animations defined in xml can animate between activities
//calls new activity startactivity(new intent(this, newactivity.class)); //set transition -> method available android 2.0 , beyond overridependingtransition(r.anim.push_left_in,r.anim.push_up_out);
but have animation defined in java. function "overridependingtransition(int , int)" takes int arguments animations. how can use programmatically defined animations instead?
i found out solution here http://blog.robert-heim.de/karriere/android-startactivity-rotate-3d-animation-activityswitcher/comment-page-1/#comment-12025
Comments
Post a Comment