Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: LGPL 

import android.content.Context;

import android.view.LayoutInflater;
import android.view.View;

import android.widget.ListView;

public class Main {
    public static View addListViewHeaderView(ListView listview, int layoutId, Context context) {
        LayoutInflater mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View view = mInflater.inflate(layoutId, null);
        listview.addHeaderView(view);
        return view;
    }
}