Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the NoSaveStateFrameLayout?

Tags:

I've been reading about layout optimization from the Android Dev blogs and I've been using hierarchyviewer to see where I can possibly flatten or merge layouts/elements. But here is something that I keep seeing in my view hierarchy...NoSaveStateFrameLayout. Can anyone shed some light on this? It shows up (usually) before a LinearLayout and it seems quite useless and just adds another (unnecessary) level to the hierarchy. I tried searching for what this is but I've had no luck.

like image 610
Alex Fu Avatar asked Dec 30 '11 05:12

Alex Fu


1 Answers

It's an implementation detail of the support library's fragment implementation. This is the comment from it:

/**
 * Pre-Honeycomb versions of the platform don't have {@link View#setSaveFromParentEnabled(boolean)},
 * so instead we insert this between the view and its parent.
 */
like image 164
hackbod Avatar answered Oct 10 '22 19:10

hackbod