Fragments are created with a Gray background and not white as default

2

In my project, when I create a fragment, it creates them and the backgrounds instead of being White or Transparent creates it with a gray color, which at the time of executing any component of type gridLayout, for example, shows a gray color at the edges. , obviously for that reason, anyway, I am second that if I solve the gray background, everything will be solved (it is visual only)

I add a new Fragment:

    
asked by E.M.A 19.05.2017 в 17:58
source

1 answer

0

You have 2 options, define the white color as background within the layout:

android:background="#FFFFFF"

or programmatically change the color:

fragment.getView().setBackgroundColor(Color.WHITE);
    
answered by 23.07.2017 в 06:06