Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 823
Fang Avatar asked Nov 10 '22 03:11

Fang


1 Answers

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"

like image 55
Marcelo Cordini Avatar answered Nov 14 '22 22:11

Marcelo Cordini