如何添加一个ViewGroup中另一个的ViewGroup? [英] How do I add a ViewGroup to another ViewGroup?
本文介绍了如何添加一个ViewGroup中另一个的ViewGroup?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个自定义的ViewGroup其中包含儿童的N多。现在,我已经创建了另一组的ViewGroup的。我想在第二的ViewGroup添加到第一个。我怎么做?谢谢..
I've a custom ViewGroup which contains N number of children. Now, I've created another set of ViewGroup. I want to add the second ViewGroup to the first one. How do I do that? Thanks..
推荐答案
从code:
firstViewGroup.addView(secondViewGroup);
这篇关于如何添加一个ViewGroup中另一个的ViewGroup?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文