Disable other fragments in auto rotation
问题 i have an app with various fragments and the problem is when the phone rotates, the app displays other fragments from the begining. it does not close the current fragments but looks like layers on top of each other. any help i'd be grateful. thanks 回答1: Try this to add in your AndroidManifest <Activity .... .... android:configChanges="orientation|screenSize"> 回答2: You need to check for a savedInstanceState , and if it exists, don't re-create your fragments. just check if is null or not as