Smooth transition between full-screen-activity and one with notification-bar and action bar

坚强是说给别人听的谎言 提交于 2019-12-05 04:11:58
GReaper

I've solved my problem doing the following:

1.- I have to optimize all the screens where the AB was shown. In some cases I used ListViews which weren't correctly implemented and that caused a noticeable load time in the activity.

2.- I have shown the status bar BEFORE starting the new activity. I mean: I've shown the status bar in the fullscreen activity just before starting the non-fullscreen one. With that I achieved that the layout of the second activity (non-fullscreen) was never resized.

With this two little changes now the AB transition is much more smoother.

You can find the complete post with my answer at: Smoother transition from fullscreen activity using ActionBarSherlock

Why don't you use some other animation slide transitions rather than default popping one?

something like this?

overridePendingTransition(android.R.anim.accelerate_interpolator, android.R.anim.slide_out_right);

Here is the Animation lists that you can use http://developer.android.com/reference/android/R.anim.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!