在我的应用程序中,我有一个派生自ExpandableListActivity的类。当我滚动内容,然后更改手机方向或编辑项目然后返回列表时,原始列表位置不会保留。我尝试了两种解决方案,类似于我最近成功用于ListActivity派生类的解决方案。解决方案一:protectedvoidonRestoreInstanceState(Bundlestate){super.onRestoreInstanceState(state);mListState=state.getParcelable(LIST_STATE);}protectedvoidonResume(){super.onResume(