Java tutorial
//package com.java2s; import android.app.Activity; import android.view.View; import android.view.ViewGroup; public class Main { public static View getRootView(Activity activity) { return ((ViewGroup) activity.findViewById(android.R.id.content)).getChildAt(0); } }