Ok, so fixed at the end.
First, a basic layout was made that pops up on a relative layout. Then I placed the full screen blank layout on top, which I made invisible and transparent.
Then show when the popup is displayed, set the full-screen panel using setVisibility(View.VISIBLE); and hide when the popup is hidden using setVisibility(View.GONE);
You must also return true from the touch listener for the layout using (To stop touch events returning to the main layout):
blocker.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { return true; } });
And give the popup properties:
setTouchable(true); setOutsideTouchable(false);
Greetings
source share