Refine search![Refine arrow](//d16xvuom8mr9m8.cloudfront.net/code/public/images/refine-arrow.226bef887e7b1c430d6d498717d9d561.svg)
@Override public View getView(final int position, View convertView, ViewGroup viewGroup) { ViewHolder holder = null; if (convertView == null) { convertView = inflater.inflate(R.layout.list_item_posibility, viewGroup, false); holder = new Holder(); holder.possibilityTitle = (TextView) convertView.findViewById(R.id.text_possibility); convertView.setTag(holder); } else { holder = (ViewHolder)convertView.getTag(); } holder.possibilityTitle.setText(possibilitiesList.get(position)); return convertView; }
AttributeCertificateHolder(ASN1Sequence seq) { holder = Holder.getInstance(seq); }
public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof AttributeCertificateHolder)) { return false; } AttributeCertificateHolder other = (AttributeCertificateHolder)obj; return this.holder.equals(other.holder); }
Holder h = new Holder(5); Field f = h.getClass().getDeclaredField("n"); f.setAccessible(true); f.setInt(h, 10); h.assertSanity();
final int count = array.size(); /* layout to draw list */ LinearLayout list = (LinearLayout) findViewById(R.id.list); LayoutInflater mInflater = null; mInflater = LayoutInflater.from(this); for (int i = 0; i < count; i++) { /* row of the list - XML File */ View convertView = mInflater.inflate(R.layout.item_list, null); /* holder class to hold row information to display on screen */ Holder holder = new Holder(); convertView.setId(array.get(i).getId()); holder.icon = (ImageView) convertView.findViewById(R.id.icon); holder.iconName = (TextView) convertView.findViewById(R.id.name); holder.msg = (TextView) convertView.findViewById(R.id.msg); convertView.setTag(holder); RelativeLayout.LayoutParams parms = new RelativeLayout.LayoutParams(48, 48); holder.icon.setLayoutParams(parms); holder.iconName.setText( " your code " ); holder.msg.setText(" your message "); /* add row to the list */ list.addView(convertView); convertView.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { /* show details */ showDetails(v.getId()); } }); }
@Override public View getView(final int position, View convertView, ViewGroup parent) { Context context = activity.getApplicationContext(); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = inflater.inflate(layoutResourceId, null); } ClassOrdenDetalle item = data.get(position); Holder holder=new Holder(); holder.text_cantidad=(TextView)convertView.findViewById(R.id.txtcantidad); holder.text_codigo=(TextView)convertView.findViewById(R.id.txtarticulo); holder.text_codigo.setText(item.getCod_articulo()); holder.text_cantidad.setText(item.getCantidad()+""); return view; }
if (row == null) { LayoutInflater inflater = LayoutInflater.from(context); row = inflater.inflate(R.layout.ec_checkbox_number, null); holder = new Holder(); holder.cbxSelected = (CheckBox)row.findViewById(R.id.cbxChecked); row.setTag(holder); } else { holder = (Holder)convertView.getTag(); holder.cbxSelected.setOnCheckedChangeListener(null); }
@Override public View getView(final int position, View convertView, ViewGroup parent) { // TODO Auto-generated method stub final Holder holder=new Holder(); View rowView; rowView = inflater.inflate(R.layout.list_item, null); holder.editText = (EditText)rowView.findViewById(R.id.editText); holder.editText.setText(textMap.get(position)); ....
public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = ((LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.gallery_main_page_grid_item, parent, false); } Holder holder = new Holder(); AQuery aq = listAQ.recycle(convertView); holder.imgView_Grid_Thumbnail_Gallery = (ImageView) convertView.findViewById(R.id.imgView_Grid_Thumbnail_Gallery); if (holder.imgView_Grid_Thumbnail_Gallery != null) { aq.id(holder.imgView_Grid_Thumbnail_Gallery.getId()).image(dataArray.get(position).get("thumbUrl") + "/11"); } holder.txtView_Grid_Name_Gallery = (TextView) convertView.findViewById(R.id.txtView_Grid_Name_Gallery); if (holder.txtView_Grid_Name_Gallery != null) { aq.id(holder.txtView_Grid_Name_Gallery.getId()).text(dataArray.get(position).get("user_name")); Typeface txtViewForName = Typeface.createFromAsset(convertView.getContext().getAssets(), "fonts/arial_bold.ttf"); holder.txtView_Grid_Name_Gallery.setTypeface(txtViewForName); }
public View getView(final int position, View convertView, ViewGroup parent) { // TODO Auto-generated method stub Holder holder=new Holder(); View rowView; rowView = inflater.inflate(R.layout.list_item, null); //Handle your items. //StringHolder.mSelectedItem is a public static variable. if(getItemId(position)==StringHolder.mSelectedItem){ rowView.setBackgroundColor(Color.LTGRAY); }else{ rowView.setBackgroundColor(Color.TRANSPARENT); } return rowView; }
if (holder.getBaseCertificateID() != null) return holder.getBaseCertificateID().getSerial().getValue().equals(x509Cert.getSerialNumber()) && matchesDN(PrincipalUtil.getIssuerX509Principal(x509Cert), holder.getBaseCertificateID().getIssuer()); if (holder.getEntityName() != null) holder.getEntityName())) if (holder.getObjectDigestInfo() != null)
@Override public View getView(int position, View convertView, ViewGroup parent) { Holder holder; convertView = null; // convert view should be null if (convertView == null) { holder = new Holder(); convertView = inflater1.inflate(R.layout.listview_draftreport_item, null); } }
/** * Returns algorithm identifier for the digest used if ObjectDigestInfo is present. * * @return digest AlgorithmIdentifier or <code>null</code> if ObjectDigestInfo is absent. */ public AlgorithmIdentifier getDigestAlgorithm() { if (holder.getObjectDigestInfo() != null) { return holder.getObjectDigestInfo().getDigestAlgorithm(); } return null; }
/** * Return the principals associated with the issuer attached to this holder * * @return an array of principals, null if no BaseCertificateID is set. */ public Principal[] getIssuer() { if (holder.getBaseCertificateID() != null) { return getPrincipals(holder.getBaseCertificateID().getIssuer()); } return null; }
public int hashCode() { return this.holder.hashCode(); }
/** * Return any principal objects inside the attribute certificate holder * entity names field. * * @return an array of Principal objects (usually X500Principal), null if no * entity names field is set. */ public Principal[] getEntityNames() { if (holder.getEntityName() != null) { return getPrincipals(holder.getEntityName()); } return null; }
public Object clone() { return new AttributeCertificateHolder((ASN1Sequence)holder .toASN1Primitive()); }
if (convertView == null) { LayoutInflater mInflater = (LayoutInflater) mcontext.getSystemService(Activity.LAYOUT_INFLATER_SERVICE); convertView = mInflater.inflate(R.layout.subcat_list_item, null); holder = new Holder(); holder.imgIcon = (ImageView) convertView.findViewById(R.id.dd_icon); .....
Holder holder; if (convertView == null) { holder=new Holder(); LayoutInflater mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = mInflater.inflate(R.layout.custom_listview, null); holder.file_name=(TextView) convertView.findViewById(R.id.file_name); holder.file_path=(TextView) convertView.findViewById(R.id.file_path); convertView.setTag(holder); }else{ holder = (Holder) convertView.getTag(); }