Java 类android.view.View.BaseSavedState 实例源码

项目:FMTech    文件:CoordinatorLayout.java   
protected Parcelable onSaveInstanceState()
{
  SavedState localSavedState = new SavedState(super.onSaveInstanceState());
  SparseArray localSparseArray = new SparseArray();
  int i = 0;
  int j = getChildCount();
  while (i < j)
  {
    View localView = getChildAt(i);
    int k = localView.getId();
    Behavior localBehavior = ((LayoutParams)localView.getLayoutParams()).mBehavior;
    if ((k != -1) && (localBehavior != null))
    {
      AbsSavedState localAbsSavedState = View.BaseSavedState.EMPTY_STATE;
      if (localAbsSavedState != null) {
        localSparseArray.append(k, localAbsSavedState);
      }
    }
    i++;
  }
  localSavedState.behaviorStates = localSparseArray;
  return localSavedState;
}
项目:boohee_v5.6    文件:CoordinatorLayout.java   
public Parcelable onSaveInstanceState(CoordinatorLayout parent, V v) {
    return BaseSavedState.EMPTY_STATE;
}