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.view.View;

public class Main {
    public static boolean isDualPane(Activity activity, int viewIdToLookForInActivity) {
        View view = activity.findViewById(viewIdToLookForInActivity);
        return view != null && view.getVisibility() == View.VISIBLE;
    }
}