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

前端 未结 5 1697
广开言路
广开言路 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 12:59

    When do you call setTheme() on your application context? It must be called before instantiating any views.

提交回复
热议问题