Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;

import android.view.LayoutInflater;

import android.view.View;
import android.view.ViewGroup;

public class Main {
    public static View create(Context context, int layout) {
        return LayoutInflater.from(context).inflate(layout, null);
    }

    public static View create(Context context, int layout, ViewGroup parent, boolean attachToRoot) {
        return LayoutInflater.from(context).inflate(layout, parent, attachToRoot);
    }
}