How to set the theme for the application, to avoid wrong color transitions?

前端 未结 4 1422
天命终不由人
天命终不由人 2020-12-14 03:21

Background

I\'m developing a themes chooser feature in my \"app manager\" app, and I\'ve succeeded setting the theme dynamically for each of the activities.

<
4条回答
  •  一生所求
    2020-12-14 04:18

    A bit late, but this may be the answer. I discovered it by chance.

    No entrance activity, no custom animations, no hacking. Simply an attribute in theme. Android buried this deep inside its resources.

    Add the following attribute to your app theme:

    
    true
    

    And your are done. Enjoy it!

提交回复
热议问题