Your root layout must be FrameLayout.
<FrameLayout>
<RelativeLayout>
<!-- This is your existing relative layout -->
<RelativeLayout>
<AnyLayoutHere>
<!-- This will be your overlay that you can hide or show -->
</AnyLayoutHere>
</FrameLayout>