Inflating a view multiple times in the same parent when a button is clicked

前端 未结 1 1271
春和景丽
春和景丽 2020-12-17 02:45

My app is about creating surveys. In order to do so, the user should be able to create new fields dynamically.

So, when creating a new survey, an Activity is shown w

相关标签:
1条回答
  • 2020-12-17 03:26

    Your parent is a LinearLayout, and it looks like you intended a vertical orientation, but you haven't specified this. Try setting the orientation and see if that helps.

    0 讨论(0)
提交回复
热议问题