Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use presentModalViewController in Android?

Currently i am working in Android application, In iphone application Using presentModalViewController to animate view from bottom to top on a screen, similarly in Android application, How to use presentModalViewController Control in Android? Is it possible to add this? I refer the internet but i got only MVC pattern, so please help me.

Thanks in Advance

Using presentModalViewController in iPhone apps:

 bookview *book = [[bookview alloc]init];  
    UINavigationController *navi = [[UINavigationController alloc] initWithRootViewController:book];
    [self presentModalViewController:navi animated:YES];
like image 345
SampathKumar Avatar asked Sep 11 '26 07:09

SampathKumar


1 Answers

There is no NavigationController in android, instead android activities are pushed and pop from the activity stack, maintained by ActivityManager.

To Add animation on start or stop of an activity, please read animations, or go through following answer, to learn:

Start Activity with an animation

like image 144
jeet Avatar answered Sep 13 '26 19:09

jeet