Cómo encontrar Root Viewgroop
ViewGroup view = (ViewGroup) findViewById(android.R.id.content);
Nimorum
ViewGroup view = (ViewGroup) findViewById(android.R.id.content);