目前我在android应用程序中工作,在iphone应用程序中使用presentmodalviewcontroller在屏幕上自下而上动画视图,类似的在android应用程序中,如何在android中使用presentmodalviewcontroller控件?可以加上这个吗?我在网上查过,但我只有mvc模式,所以请帮助我。
提前谢谢
在iPhone应用程序中使用Presentmodalviewcontroller:
bookview *book = [[bookview alloc]init];
UINavigationController *navi = [[UINavigationController alloc] initWithRootViewController:book];
[self presentModalViewController:navi animated:YES];
最佳答案
在android中没有navigationcontroller,而是由activitymanager维护的活动堆栈中推送和弹出android活动。
若要在活动开始或停止时添加动画,请阅读动画或通过以下答案进行学习:
Start Activity with an animation