首页 > 移动平台 > 详细

Android Make sure other views do not use the same id. 错误解决

时间:2015-04-13 18:54:10      阅读:221      评论:0      收藏:0      [点我收藏+]

解决方案:

在出现这种情况的View  中 重写 onRestoreInstanceState方法


详细代码:

	protected void onRestoreInstanceState(Parcelable state) {
		try {
			super.onRestoreInstanceState(state);
		} catch (Exception e) {
		}
		state = null;
	}

Android Make sure other views do not use the same id. 错误解决

原文:http://blog.csdn.net/tanranran/article/details/45029885

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!