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

前端 未结 5 1696
广开言路
广开言路 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条回答
  •  猫巷女王i
    2021-01-11 12:56

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

    It's fixed in sdk 4.0 (may be earlier).

提交回复
热议问题