Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HomeActivity中onConfigurationChanged 不会被调用 #52

Open
Wangct23 opened this issue Oct 13, 2017 · 3 comments
Open

HomeActivity中onConfigurationChanged 不会被调用 #52

Wangct23 opened this issue Oct 13, 2017 · 3 comments

Comments

@Wangct23
Copy link

Wangct23 commented Oct 13, 2017

如题,求解。
我在AndroidManifest文件中已经配置了

   <activity
        android:name=".module.home.HomeActivity"
        android:configChanges="orientation|keyboardHidden|screenSize">
    </activity>

谢谢

@Wangct23 Wangct23 changed the title HomeActivity中配置 onConfigurationChanged 不会被调用 HomeActivity中onConfigurationChanged 不会被调用 Oct 13, 2017
@Rukey7
Copy link
Owner

Rukey7 commented Oct 16, 2017

你再加个 android:screenOrientation="sensor" 试试

@Wangct23
Copy link
Author

加上 android:screenOrientation="sensor" 應該是可以的。
但是為什麼必須加上這一句才可以呢。 我新建一個普通的工程,直接就可以。
樓主可以告知原因麼?
謝謝。

@Rukey7
Copy link
Owner

Rukey7 commented Oct 30, 2017

这也是我遇到过的问题,我没具体查到明确要加这个属性的相关说明,我是在设置旋转监听器的时候出现的问题,后面没找时间去仔细调了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants