设置activity主题theme以及沉浸式之类的操作为啥放置再setContentView之前执行

1.从setContenView入口看源码 ----> installDecor ---> generatorDecor  generatorLayout(改方法中读取manifest中对activity设置的主题以及对window的一些其他操作,比如window背景透明等等) --->返回id为content的顶层控件framelayout






猜你喜欢

转载自blog.csdn.net/qq_24505921/article/details/90201658
今日推荐