If i have my animations defined in xml then i can animate between activities like
//Calls a new Activity
startActivity(new Intent(this, NewActivity.class));
//Set the transition -> method available from Android 2.0 and beyond
overridePendingTransition(R.anim.push_left_in,R.anim.push_up_out);
But I have my animation defined in Java. Function "overridePendingTransition(int , int)" takes int arguments for animations. How can I use programmatically defined animations instead?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.