Example usage for android.view LayoutInflater from

List of usage examples for android.view LayoutInflater from

Introduction

In this page you can find the example usage for android.view LayoutInflater from.

Prototype

public static LayoutInflater from(Context context) 

Source Link

Document

Obtains the LayoutInflater from the given context.

Usage

From source file:DictionaryAdapter.java

@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
    return LayoutInflater.from(context).inflate(android.R.layout.simple_list_item_1, parent, false);
}

From source file:MainAdapter.java

@Override
public MainViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.card_main, parent, false);

    v.setOnClickListener(MainActivity.mainOnClickListener);

    return new MainViewHolder(v);
}

From source file:gov.in.bloomington.georeporter.adapters.ServicesAdapter.java

public ServicesAdapter(ArrayList<JSONObject> services, Context c) {
    mServices = services;
    mInflater = LayoutInflater.from(c);
}

From source file:net.idlesoft.android.apps.github.adapters.BranchListAdapter.java

public BranchListAdapter(final Context context, final JSONObject jsonobject) {
    mContext = context;
    mInflater = LayoutInflater.from(mContext);
    mJson = jsonobject;
}

From source file:gov.in.bloomington.georeporter.adapters.PersonalInfoAdapter.java

public PersonalInfoAdapter(JSONObject d, Context c) {
    mPersonalInfo = d;
    mInflater = LayoutInflater.from(c);

    mResources = c.getResources();
    mPackageName = c.getPackageName();
}

From source file:gov.in.bloomington.georeporter.adapters.ServersAdapter.java

public ServersAdapter(JSONArray d, Context c) {
    mServers = d;/*from www . j  a v a2 s.com*/
    mInflater = LayoutInflater.from(c);

    JSONObject currentServer = Preferences.getCurrentServer(c);
    mCurrentServerName = currentServer == null ? "" : currentServer.optString("name");
}

From source file:net.idlesoft.android.apps.github.adapters.JsonListAdapter.java

public JsonListAdapter(final Activity pActivity, final AbsListView pListView) {
    super(pActivity, pListView, R.layout.loading_listitem);

    mActivity = pActivity;/*  w  ww .ja  va  2  s  . c om*/
    mInflater = LayoutInflater.from(pActivity);
    mListData = new LinkedList<Object>();
}

From source file:com.app.jdy.adapter.FaceValueAdapter.java

public FaceValueAdapter(Context context, int resource, List<FaceValue> list) {
    this.context = context;
    this.listContainer = LayoutInflater.from(context); // 
    this.itemViewResource = resource;
    this.list = list;
}

From source file:com.springsource.greenhouse.twitter.TweetsListAdapter.java

public TweetsListAdapter(Context context, List<Tweet> tweets) {
    this.tweets = tweets;
    this.layoutInflater = LayoutInflater.from(context);
}

From source file:org.kepennar.android.client.social.facebook.FacebookFeedListAdapter.java

public FacebookFeedListAdapter(Context context, List<Post> entries) {
    _entries = entries;
    _layoutInflater = LayoutInflater.from(context);
}