简体   繁体   中英

Navigation Drawer implies nested fragments?

I created an application with a navigation drawer navigating following the android documentation tutorial. Now the main parts of my application are Fragment but the problem is I have to use dynamic fragments in one of them. I saw the nested fragments were supported since android 4.2, but I need to use my app on older version.

What can I do ? I'm thinking of using a FrameLayout of fixed fragments and to set them visible or gone depending of what I need, but it seems a little ugly...

What do you think ? Thanks for your answers

Edit : my question is not clear but what I want to know is :

  • can I use the navigationdrawer with activities instead of fragments ?
  • is the solution I'm thinking about realy ugly ?
  • how can I use the nested fragment system for older version ?

最后,我使用了Android支持库中的嵌套片段系统(感谢Nobu Games)。感谢您的评论

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM