View inflate : View « UI « Android






View inflate

    
//package org.anddev.andengine.util;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * (c) 2010 Nicolas Gramlich 
 * (c) 2011 Zynga Inc.
 * 
 * @author Nicolas Gramlich
 * @since 20:55:35 - 08.09.2009
 */
class ViewUtils {
  public static View inflate(final Context pContext, final int pLayoutID){
    return LayoutInflater.from(pContext).inflate(pLayoutID, null);
  }

  public static View inflate(final Context pContext, final int pLayoutID, final ViewGroup pViewGroup){
    return LayoutInflater.from(pContext).inflate(pLayoutID, pViewGroup, true);
  }
}

   
    
    
    
  








Related examples in the same category

1.Brightness Slider
2.extends View to do drawing
3.Set View background
4.Extends View to draw
5.extends View to create customized User interface widget
6.Render View
7.Using Reflection to call method
8.Example of how to write a custom subclass of View.
9.Demonstrates making a view VISIBLE, INVISIBLE and GONE
10.Pint View
11.Compass View
12.Bars View
13.Graph View