Disable default animation from Portrait to Landscape

后端 未结 8 1148
庸人自扰
庸人自扰 2020-11-27 03:30

I have an app with several \'normal\' activities which can run on either landscape or portrait. They are designed for and mostly used on portrait.

This app has one s

8条回答
  •  抹茶落季
    2020-11-27 04:16

    You can set in the AndroidManifest a property called android:configChanges where you can decide which changes you want to manage in code. In this way, the rotation change animation will be disabled and you can handle it as you want in the method onConfigurationChanged of your Activity.

    
    

提交回复
热议问题