NOTE
If someone know how to order (z-order) Windows added via windowmanager, i will also accept the answer because it\'s will answer al
This is expected, if you see the documentation of DecorView, It give you the background of current view.
What you are doing is starting the action bar on the decorview, hence its coming in background. Read this article for more detail http://www.curious-creature.com/2009/03/04/speed-up-your-android-ui/
To solve this issue, you need to get the current view, for which you may use View focusedView = (View) yourParentView.getFocusedChild();