LinearLayout addView doesn't work properly

前端 未结 2 528
情话喂你
情话喂你 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 22:01

    Use the hierarchy viewer to check if there really is only 1 view added, or that you can see only one view. For instance, this line android:layout_below="@id/post_list_item_footer_text" might be troublesome if you repeat it? I don't know the expected behaviour for that...

提交回复
热议问题