是否可以动态地向 fragment 添加 View ?如果是,我该怎么做?
最佳答案
Is it possible to add a View to a Fragment dynamically?
是的。
If it is, how can i do that?
与在其他任何地方添加 View
的方式相同:在 View
的父容器上调用 addView()
。
关于android-fragments - 在 Android 中动态添加 View 到 fragment ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7512369/