search

Home  >  Q&A  >  body text

android 布局有个黄色叹号

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

PHP中文网PHP中文网2821 days ago1147

reply all(3)I'll reply

  • 阿神

    阿神2017-04-17 11:43:43

    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

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 11:43:43

    You have used expired parameters, please be reminded

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

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 11:43:43

    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

    reply
    0
  • Cancelreply