调用void onSaveInstanceState(Bundle outState)
时,是否有任何方法可以不在Android的 saveInstanceBundle
中包含该字段 ?
Fields are not added automatically. You have to write/read each one by yourself. If that's your case, just don't do anything with that field.
If there's a field which is already added (like visibility or text in TextView), you have to find it and remove it after calling super.onSaveInstanceState()
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.