1

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 ?
3
  • 1
    you can have framelayout as a container add or replace fragments when you want Jan 19, 2014 at 16:52
  • 1
    You can also use the Android Support Library. It also supports nested fragments for older Android versions. See here: developer.android.com/about/versions/…
    – tiguchi
    Jan 19, 2014 at 16:54
  • "What do you think ?" -- I think that this question is unclear. What specifically is your problem? Jan 19, 2014 at 17:00

1 Answer 1

0

In the end I used the nested fragment system using the Android Support Library (thanks Nobu Games) Thanks for your comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.