View rootView = ((ViewGroup)getWindow().getDecorView().findViewById(android.R.id.content)).getChildAt(0);
rootView.setBackgroundColor(Color.WHITE);
activity 获取 rootView 设置 backGroundColor
最新推荐文章于 2023-07-27 10:53:17 发布
View rootView = ((ViewGroup)getWindow().getDecorView().findViewById(android.R.id.content)).getChildAt(0);
rootView.setBackgroundColor(Color.WHITE);