你能告诉我当屏幕方向发生变化时,我的 android Activity 如何知道(是否有回调)?
谢谢。
最佳答案
看看 Activity
的 public void onConfigurationChanged(Configuration newConfig)
方法:
注意这个:
Note that this will only be called if you have selected configurations you would like to handle with the configChanges attribute in your manifest.
关于android - 我的 android Activity 如何知道设备何时改变方向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3754836/