Why set a drawable shape in layout background will be warn?

721 Views Asked by At

Why setting a layout background with shape drawable causes a warning on Android Studio 1.4 telling that cannot set background in RelativeLayout?

Android Studio warning about invalid background:

enter image description here

Drawable shape used as background:

enter image description here

1

There are 1 best solutions below

3
Marcelo Cordini On BEST ANSWER

Nothing to be concerned about. It is an android studio problem, it normally shows a preview icon of the drawable, but in this case it cannot show a preview of a drawable XML and shows that "error"