android 布局有个黄色叹号
PHP中文网
PHP中文网 2017-04-17 11:41:43
0
3
1134

This LinearLayout layout or its RelativeLayout parent is possibly useless; transfer the background attribute to the othe
线性布局上面有个叹号,怎么去掉

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
阿神

It means that your LinearLayout or RelativeLayout is not necessary. You can reset the LinearLayout attribute in background, or delete RelativeLayout and use LinearLayout as the outermost layout

Peter_Zhu

You have used expired parameters, please be reminded

fill_parent has been listed as expired a long time ago..

Peter_Zhu

Reason for warning: The warning prompt means that the parent layout control (the outermost LinearLayout) is not useful in this layout file; the reason is that there is a child LinearLayout layout nested in the LinearLayout layout, and in my entire In the layout file, there is an outermost LinearLayout that performs the overall layout for the parent control, which causes this layout code to duplicate the LinearLayout layout.

The ending method is very simple and only requires a repeated LinearLayout

http://www.2cto.com/kf/201404/292892.html

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template