This RelativeLayout layout or its LinearLayout parent is useless

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

    Lint is correct in it's warning, your LinearLayout isn't doing anything useful, since its only child is a RelativeLayout. Remove the LinearLayout:

     
    
    
    
     

提交回复
热议问题