How to add two fragments together in a frameLayout in runtime

后端 未结 1 1370
余生分开走
余生分开走 2021-01-23 01:00

I am developing an andorid application with navigation drawer and I have a layout for contentview like this:



        
相关标签:
1条回答
  • 2021-01-23 01:28

    You may just use nested fragments. Create another fragment that will dynamically create both your fragments and add them to its layout.

    For more information read this: http://developer.android.com/about/versions/android-4.2.html#NestedFragments

    0 讨论(0)
提交回复
热议问题