Examples are as follows:
View rootView = ((ViewGroup)getWindow().getDecorView().findViewById()).getChildAt(0); ();
The above method to get rootView and set backGroundColor in the activity is all the content I share with you. I hope you can give you a reference and I hope you support me more.