相同id報(bào)錯(cuò)
我給WuziqiPanel添加了id,但是在旋轉(zhuǎn)屏幕時(shí),onRestoreInstanceState的super.onRestoreInstanceState(state),也就是最后一行會(huì)報(bào)錯(cuò):
Wrong state class, Make sure other views do not use the same id。
誰知道這是什么情況?
我給WuziqiPanel添加了id,但是在旋轉(zhuǎn)屏幕時(shí),onRestoreInstanceState的super.onRestoreInstanceState(state),也就是最后一行會(huì)報(bào)錯(cuò):
Wrong state class, Make sure other views do not use the same id。
誰知道這是什么情況?
2016-05-27
舉報(bào)
2016-06-01
在onRestoreInstanceState如果if(bundle instanceof Bundle)時(shí)需要返回。。?;蛘吣阍诩觽€(gè)else ?才執(zhí)行super.onRestoreInstanceState(state);不然會(huì)執(zhí)行兩次super.onRestoreInstanceState(state);