List of usage examples for android.view LayoutInflater from
public static LayoutInflater from(Context context)
From source file:com.app.jdy.adapter.GradeAdapter.java
public GradeAdapter(Context context, int resource, List<Grade> list) { this.context = context; this.listContainer = LayoutInflater.from(context); // this.itemViewResource = resource; this.list = list; }
From source file:org.kepennar.android.client.social.twitter.TwitterTimelineListAdapter.java
public TwitterTimelineListAdapter(Context context, List<Tweet> tweets) { _tweets = tweets; _layoutInflater = LayoutInflater.from(context); }
From source file:com.app.jdy.adapter.MyOrderAdapter.java
public MyOrderAdapter(Context context, int resource, List<MyOrder> list) { this.context = context; this.listContainer = LayoutInflater.from(context); // this.itemViewResource = resource; this.list = list; }
From source file:android.support.v17.leanback.supportleanbackshowcase.cards.TextCardView.java
public TextCardView(Context context) { super(context, null, R.style.TextCardStyle); LayoutInflater.from(getContext()).inflate(R.layout.text_icon_card, this); setFocusable(true);/* ww w . j a v a 2 s .com*/ }
From source file:com.futureplatforms.kirin.ui.JSListAdapter.java
public JSListAdapter(Context context, JSONArray array, int rowLayout, KirinRowRenderer<JSONObject> renderer) { mItemRenderer = renderer;//ww w. j ava 2 s.c om mArray = array; mRowLayout = rowLayout; mLayoutInflater = LayoutInflater.from(context); }
From source file:net.idlesoft.android.apps.github.adapters.CommitListAdapter.java
public CommitListAdapter(final Context context, final JSONArray jsonarray) { mContext = context;//from w w w . j av a 2 s . co m mInflater = LayoutInflater.from(mContext); mJson = jsonarray; mGravatars = new HashMap<String, Bitmap>(mJson.length()); loadGravatars(); }
From source file:android.support.v17.leanback.supportleanbackshowcase.cards.CharacterCardView.java
public CharacterCardView(Context context) { super(context, null, R.style.CharacterCardStyle); LayoutInflater.from(getContext()).inflate(R.layout.character_card, this); setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override/*from ww w . j a v a2 s .co m*/ public void onFocusChange(View v, boolean hasFocus) { ImageView mainImage = (ImageView) findViewById(R.id.main_image); View container = findViewById(R.id.container); if (hasFocus) { container.setBackgroundResource(R.drawable.character_focused); mainImage.setBackgroundResource(R.drawable.character_focused); } else { container.setBackgroundResource(R.drawable.character_not_focused_padding); mainImage.setBackgroundResource(R.drawable.character_not_focused); } } }); setFocusable(true); }
From source file:com.app.jdy.adapter.MyRecordAdapter.java
public MyRecordAdapter(Context context, int resource, List<MyRecord> list) { this.context = context; this.listContainer = LayoutInflater.from(context); // this.itemViewResource = resource; this.list = list; }
From source file:org.kepennar.android.client.social.twitter.TwitterProfileListAdapter.java
public TwitterProfileListAdapter(Context context, TwitterProfile twitterProfile) { if (twitterProfile == null) { throw new IllegalArgumentException("twitterProfile cannot be null"); }//from ww w . j a va 2s .c om _twitterProfile = twitterProfile; _layoutInflater = LayoutInflater.from(context); }
From source file:org.kepennar.android.client.social.facebook.FacebookProfileListAdapter.java
public FacebookProfileListAdapter(Context context, FacebookProfile facebookProfile) { if (facebookProfile == null) { throw new IllegalArgumentException("facebookProfile cannot be null"); }/* w ww . j a va2s .c o m*/ _facebookProfile = facebookProfile; _layoutInflater = LayoutInflater.from(context); }