Как найти root viewgroop
ViewGroup view = (ViewGroup) findViewById(android.R.id.content);
Nimorum
ViewGroup view = (ViewGroup) findViewById(android.R.id.content);