Porcupine Programmer

Programming rants, random stuff and some more programming.

Android Gets Nested Fragments

| Comments

Most of the items in the Android 4.2 APIs list are kind of “meh” to me, but there is one item that’s make me very happy: nested fragments. Fragments were supposed to be reusable UI components, but for some unfathomable reason the initial release of the fragments API didn’t allow composing a fragment from other fragments. Even during the 2012 Google I/O one of the Google developers said that they have discussed this idea, but they’re not sure if it’s a good one, which is an absolute surprise to me, because I don’t think anyone sane would consider making the ViewGroup which isn’t a subclass of a View.

Fragment nesting was a topic I kept on my topic list for a day when I feel I need to bitch about something, but now I’m happy to remove it and write this ecstatic post. So now launch your SDK managers and download the r11 of support package! (or wait for half a year and hope it will be added to Maven Central)