This RelativeLayout layout or its LinearLayout parent is useless

后端 未结 4 697
无人共我
无人共我 2020-12-17 18:59

I\'m developing an Android 3.1. and above application.

On one activity I generate its layout dynamically. I\'m using formdetail.xml as contentview:<

4条回答
  •  甜味超标
    2020-12-17 19:11

    You either ignore it or right click your project. Click Build Path->Configure Build Path.... Under Android Lint Preferences look for UselessParent and set it's severity to ignore or click Ignore All.

    EDIT:

    I take that last part back. I think Ignore All will wipe all Lint warnings and errors.

提交回复
热议问题