Why getApplicationContext().setTheme() in a Activity does not work?

前端 未结 5 1654
广开言路
广开言路 2021-01-11 12:20

i am currently have a hard time for calling to getApplicationContext().setTheme() in a activity, I just want to apply a theme resource in a application scope in

5条回答
  •  执笔经年
    2021-01-11 13:07

    you can use setTheme(..) before calling setContentView(...)and super.oncreate() and it should work fine

提交回复
热议问题