Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.app.Activity;

import android.util.Log;

import android.view.ViewGroup;

public class Main {

    public static void setFitsSystemWindows(Activity activity, boolean values) {
        ViewGroup rootView = (ViewGroup) ((ViewGroup) activity.findViewById(android.R.id.content)).getChildAt(0);
        Log.d("statusbar", "rootViewid  " + rootView.getId());
        rootView.setFitsSystemWindows(values);
        rootView.setClipToPadding(true);
    }
}