美文网首页
锁屏页面销毁跟重建

锁屏页面销毁跟重建

作者: 菜鸟何时起飞 | 来源:发表于2020-07-07 19:16 被阅读0次

    If your target build version is Honeycomb 3.2 (API Level 13) or higher you must put the screenSize flag too, as in:

    <activity
        android:configChanges="orientation|screenSize|keyboardHidden"
        android:name="YOUR ACTIVITY NAME">
    </activity>
    

    because even with the "orientation" flag you app will be killed and recreated again with every orientation change when your app is the active one, either being visible on screen or hidden by the lock screen. This is because the usable screen size, mainly in tablets, actually changes due to the change in placement of the system action bar.

    相关文章

      网友评论

          本文标题:锁屏页面销毁跟重建

          本文链接:https://www.haomeiwen.com/subject/mnpzqktx.html