zoukankan      html  css  js  c++  java
  • android4.0 禁止横竖屏切换使用 android:configChanges="orientation|keyboardHidden"无效的解决方法

    Android横竖屏幕切换时注意4.0以上配置configChanges要加上screenSize,要不还会调用onCreate()。

    <activity android:name=".MainActivity" android:configChanges="orientation|keyboardHidden|screenSize"/>

  • 相关阅读:
    Serialize&Deserialize
    Async&Await
    Generic
    Enum
    Array
    String
    Nullable
    Collection
    Class&Struct
    Interface
  • 原文地址:https://www.cnblogs.com/Free-Thinker/p/3725837.html
Copyright © 2011-2022 走看看