简体   繁体   中英

Android fragments orientation change issue

Am using fragments in tabhost on bottom of screen with five tabs as contained in five fragments. Take as Fragment A,B,C,D,E. All fragments am designed for portrait mode. When am in Fragment C then i rotate screen to landscape my screen goes to Fragment A not restoring in Fragment CI have to stay in Fragment C when i rotate to landscape mode or vice versa.

Manifest.xml使用带有Activity标签的这一行:

android:configChanges="keyboardHidden|orientation|screenSize"

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM