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 context) { return ((ViewGroup) context.findViewById(android.R.id.content)).getChildAt(0); } }