修改Activity的theme,添加 <!--直接生效,状态栏文字颜色变成黑色,非沉浸式--> <item name="android:windowLightStatusBar">true</item> 可直接生效,亲测有效。