Android Developer

Android support v4 NoSaveStateFrameLayout layout optimization

23 Dec 2014

We know fragment coming from with HONEYCOMB. If we think to support the old version of this. we need to use the library from fragment support-v4.

But support fragment in order to support the previous version HONEYCOMB, Is placed between the parent view and the fragment view nosavestatelayout

infrastructure

/**
 * Pre-Honeycomb versions of the platform don't have {@link View#setSaveFromParentEnabled(boolean)},
 * so instead we insert this between the view and its parent.
 */

@see NoSaveStateFrameLayout.java

Especially if you are experiencing with StackOverflow error in 4.0.3 and 4.0.4 versions. This framelayout coming from library may cause that crash.

We need to know the situation. This crash occurs because of the layout is coming very depth.