Dynamically adding content to RelativeLayout

后端 未结 2 751
滥情空心
滥情空心 2021-01-03 06:13

Since I\'m still just learning Android (and it appears Amazon says it\'ll be 2 months till I get the Hello, Android book) I\'m still playing around with doing simple things.

2条回答
  •  爱一瞬间的悲伤
    2021-01-03 07:03

    you are creating new relative layout inside function call. So every time new relative layout created and it added in the view when click button . Use common relative layout.

提交回复
热议问题