SoFunction
Updated on 2025-04-09

activity Get rootView How to set backGroundColor

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.