Android Activity, how to override manifest's android:configChanges with Java code?

前端 未结 2 872
说谎
说谎 2020-12-06 20:34

I\'m coding a custom Activity class (using it as a super class for my other Activity classes) where it\'s overriding many default functionalities. One of these functionaliti

2条回答
  •  盖世英雄少女心
    2020-12-06 20:41

    You can add all possible value in "android:configChanges",and override method onConfigurationChanged in Activity,but only call Activity.receate() for the case you need.

提交回复
热议问题