Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.app.Activity;
import android.widget.FrameLayout;
import android.widget.LinearLayout;

public class Main {
    public static LinearLayout fetchAppLayout(Activity activity) {
        FrameLayout rootView = (FrameLayout) activity.getWindow().getDecorView().getRootView();
        LinearLayout rootLayout = (LinearLayout) rootView.getChildAt(0);
        return ((LinearLayout) ((FrameLayout) rootLayout.getChildAt(1)).getChildAt(0));
    }
}