Lock screen orientation when targeting Android API 27 with a non-opaque activity

前端 未结 9 749
囚心锁ツ
囚心锁ツ 2020-12-13 09:30

I have an activity that has android:windowIsTranslucent set to true and android:windowBackground set to a translucent background. I ju

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 09:39

    Thanks @JerabekJakub. My test result - keep sdk 27 and remove the following lines can also solve the crash.

     android:configChanges="orientation"
     android:screenOrientation="portrait"
    

提交回复
热议问题