Example usage for android.content Context LAYOUT_INFLATER_SERVICE

List of usage examples for android.content Context LAYOUT_INFLATER_SERVICE

Introduction

In this page you can find the example usage for android.content Context LAYOUT_INFLATER_SERVICE.

Prototype

String LAYOUT_INFLATER_SERVICE

To view the source code for android.content Context LAYOUT_INFLATER_SERVICE.

Click Source Link

Document

Use with #getSystemService(String) to retrieve a android.view.LayoutInflater for inflating layout resources in this context.

Usage

From source file:at.wada811.android.library.demos.view.ViewPagerAdapter.java

public ViewPagerAdapter(Context context) {
    mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

From source file:com.alibaba.akita.ui.adapter.AkPagerAdapter.java

public AkPagerAdapter(Context c) {
    mContext = c;
    mInflater = (LayoutInflater) c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

From source file:com.jtechme.apphub.views.AppListAdapter.java

private void init(Context context) {
    mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    displayImageOptions = Utils.getImageLoadingOptions().build();

}

From source file:com.f2prateek.foodbot.model.LogAdapter.java

@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
    LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    View v = inflater.inflate(R.layout.list_item_entry, parent, false);
    bindView(v, context, cursor);//from  w ww  . ja va  2  s  . c o  m
    return v;
}

From source file:com.lkunic.lib.activityaddonlib.twopane.ItemListCursorAdapter.java

public ItemListCursorAdapter(Context context, Cursor c) {
    super(context, c, 0);

    mLayoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

From source file:com.battlelancer.seriesguide.adapters.BaseShowsAdapter.java

public BaseShowsAdapter(Context context, Cursor c, int flags) {
    super(context, c, flags);
    mLayoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

From source file:com.QuarkLabs.BTCeClient.adapters.OrdersBookAdapter.java

public OrdersBookAdapter(Context context) {
    mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

From source file:com.anykey.balala.activity.BaseActivity.java

@Override
public void setContentView(int layoutResID) {
    LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    topView = inflater.inflate(layoutResID, null);
    headerLayout = (HeaderLayout) getTopView().findViewById(R.id.headerLayout);
    super.setContentView(topView);
}

From source file:com.money.manager.ex.assetallocation.AssetAllocationAdapter.java

@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
    LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

    View view = inflater.inflate(R.layout.item_asset_allocation, parent, false);

    // view holder pattern
    AssetClassViewHolder holder = AssetClassViewHolder.initialize(view);
    view.setTag(holder);//  w  w  w .  j  a  v  a 2 s  .  co  m

    return view;
}

From source file:com.pyxistech.android.rabbitreminder.adaptaters.AlertListAdapter.java

public AlertListAdapter(Activity context, AlertList list) {
    inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

    this.list = list;
    this.context = context;
}