This RelativeLayout layout or its LinearLayout parent is useless

后端 未结 4 703
无人共我
无人共我 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:28

    That is just an warning from lint. Lint doesn't know you would later append views to this layout and it will warn you that you added an unnecessary extra view(increasing your layout depth).

    You should just ignore the warning(If it really bothers you here is a link on how to remove warnings from lint).

提交回复
热议问题