Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 ICS 中嵌套片段?我的意思是我们可以膨胀一个包含一个或多个片段的布局 xml 文件并使用 Fragment.onCreateView 将其提供给父片段视图吗?
现在支持了,请阅读以下信息http://developer.android.com/about/versions/android-4.2.html#NestedFragments
我认为它有效,但不适用于 Android 2.x。我已经用支持库尝试过这个并得到了一个膨胀异常