Animating the transitions from and to a Java page
To animate the transitions between a web view and a native page, follow these instructions.
To add transition animation, use the Activity function OverridePendingTransition(int, int).
Example
// Transition animation from the web view to the native page @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); } // Transition animation from the native page to the web view @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { //your code goes here.... finish(); overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); }
Parent topic: Web and native code in iPhone, iPad, and AndroidRelated information:
http://developer.android.com/reference/android/app/Activity.html#overridePendingTransition(int, int)