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

Background

I have an application that has 2 actions:

  • burst activity, which is displayed in full screen mode (no action bar, notification bar)
  • The main action, which has both an action bar (uses actionBarSherlock) and a notification bar.

Problem

For some reason, when switching from the first action to the second, a β€œbusting” build process occurs, which shows the contents of the second action without an action bar and notification bar, and after a moment it shows them as.

This causes the content below to move too much, which is very noticeable.

Possible Solution

As I saw, a possible solution would be to hide the action bar and show it a little later (500 ms later), but this seems like a bad solution (which makes it slower and hides for no reason), plus I need to get the position of the actionBar elements for another purpose ( to display the tutorial).

Question

Is it possible to avoid a "respite"? One that doesn't involve such a weird workaround?

+7
android actionbarsherlock android-notification-bar android-fullscreen
source share
2 answers

I have resolved a problem with the following:

1.- I have to optimize all the screens where AB was shown. In some cases, I used ListViews that were not implemented correctly and that caused noticeable load times in activity.

2.- I have a status bar BEFORE starting a new action . I mean: I showed the status bar in full screen mode just before starting non-full screen mode. At the same time, I ensured that the layout of the second activity (not full-screen) never changed.

With these two small changes, the AB transition is now much smoother.

You can find the full post with my answer at Smoother transition from full screen using ActionBarSherlock

+1
source share

Why don't you use some other animation slides instead of the default?

something like that?

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

Here are lists of animations you can use http://developer.android.com/reference/android/R.anim.html

0
source share

All Articles