Android:你能嵌套 Fragment 吗? [英] Android: Can you nest Fragments?
本文介绍了Android:你能嵌套 Fragment 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将 Fragment
粘贴到另一个 Fragment
的布局中?有人试过吗?
Is it possible to stick a Fragment
in the layout of another Fragment
? Has anyone tried this?
推荐答案
终于!android 4.2 更新默认支持嵌套片段,也兼容:官方 NestedFragments.更重要的是,在 v4 的最新第 11 版中宣布了对嵌套 Fragment 的支持支持库!
Finally! the android 4.2 update comes with default support for nested fragments, also compatible: Official NestedFragments. What's more, the support of the nested Fragments in announced in the latest 11th revision of the v4 support library!
这篇关于Android:你能嵌套 Fragment 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文