Android examples for User Interface:Layout Inflater
get Layout Inflater
/******************************************************************************* * Copyright (c) 2012 Vincenzo Marzano.//from w w w .ja v a 2 s . c om * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html * * Contributors: * Vincenzo Marzano - initial API and implementation ******************************************************************************/ //package com.java2s; import android.content.Context; import android.view.LayoutInflater; public class Main { public static LayoutInflater getLayoutInflater(Context c) { return (LayoutInflater) c .getSystemService(Context.LAYOUT_INFLATER_SERVICE); } }