2つはビューについてSavedStateの異常解析


java.lang.RuntimeException: Unable to start activity ComponentInfo{com.*****/com.******.RootActivity}: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.ScrollView$SavedState
エラー解析から、layoutファイルにあるScrolViewのidが他のViewのidと重複していることがわかります.
Unable to start activity ComponentInfo{com.*****/com.*******.UnlockGesturePasswordActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.view.View$BaseSavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/gesturepwd_unlock_lockview. Make sure other views do not use the same id.

最初は上と同じように、Viewのidが重複していると思っていました.後で検索しても見つからなかった.後でcodeの発見を見て
SavedState     CREATOR    
 
  
private static class SavedState extends BaseSavedState {
public static final Parcelable.Creator CREATOR = new Creator() {
   public SavedState createFromParcel(Parcel in) {
      return new SavedState(in);
   }

   public SavedState[] newArray(int size) {
      return new SavedState[size];
   }
};