问题描述
Android Make sure other views do not use the same id. 错误
解决方案
在出现这种情况的View 中 重写 onRestoreInstanceState方法
详细代码:
protected void onRestoreInstanceState(Parcelable state) {
try {
super.onRestoreInstanceState(state);
} catch (Exception e) {
}
state = null;
}
网友评论