Make the image of a FrameLayout fill the entire screen.

1

Cordial greeting,

I am designing a Navigation Drawer application, the ContentMain I have it with a background image, my ideal is that by clicking on any option the same image appears much more attenuated, for this I put in the fragment the same background image but with transparency effect, but this does not occupy the entire screen and the effect is lost. How do I achieve the whole screen and not see the normal image?

MAINCONTENT IMAGE

IMAGE WHEN CLICKING ANY OPTION

    
asked by user2683734 09.03.2017 в 03:27
source

1 answer

0

The FrameLayout regularly has no problem, generally the content layout contains a margin, which should be deleted:

android:layout_marginBottom="?dp"
android:layout_marginLeft="?dp"
android:layout_marginRight="?dp"
android:layout_marginTop="?dp"

Add your Layout to confirm this

    
answered by 09.03.2017 / 18:46
source