当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Can we save the view added dynamically in LinearLAyout?

问题描述:

I want to know that can we save the dynamically added view in any viewgroup or layout???

If yes then how to save??

I am adding an imageview in viewgroup and want to save that whole layout.So is this possible or not???

Please help me.

Thanks in advance.

网友答案:

i think it might help you..

LinearLayout linear = (LinearLayout)findViewById(R.id.layout1);
linear.addView(yourviewid)
分享给朋友:
您可能感兴趣的文章:
随机阅读: