LinearLayout addView doesn't work properly

前端 未结 2 1716
一整个雨季
一整个雨季 2021-01-12 21:17

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 22:05

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

    
    

提交回复
热议问题