[Android] 不讓轉向造成畫面重整

發現寫好的App預設在轉向(rotate screen) 時會造成 activity 的 reload 事件。解法是:

Add this to your manifest under <activity>:

android:configChanges="keyboardHidden|orientation|screenSize"

解法真是簡單…

 

相關文章:

How do ı disable reload page on change screen orientation?
http://stackoverflow.com/questions/17241745/android-how-do-%C4%B1-disable-reload-page-on-change-screen-orientation

Don’t reload application when orientation changes
http://stackoverflow.com/questions/5913130/dont-reload-application-when-orientation-changes

 

相關文章

新增留言