LinearLayout addView doesn't work properly

前端 未结 2 502
情话喂你
情话喂你 2021-01-12 21:25

I\'m having issues with the addView method from LinearLayout. I don\'t know why, but if I add three views only the first one is displayed. Here is the code:

         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-12 21:49

    you do not declare the LinearLayout orientation... by default is Horizontal, try setting the orientation Vertical

    
    

提交回复
热议问题