Lines Matching refs:holder

414             ViewHolder holder;
417 holder = new ViewHolder();
418 holder.position = position;
419 holder.text1 = (TextView) convertView.findViewById(R.id.text1);
420 holder.text2 = (TextView) convertView.findViewById(R.id.text2);
421 holder.icon = (ImageView) convertView.findViewById(R.id.icon);
422 holder.check = (CheckBox) convertView.findViewById(R.id.check);
423 holder.expandGroupButton = (ImageButton) convertView.findViewById(
425 if (holder.expandGroupButton != null) {
426 holder.expandGroupListener = new ExpandGroupListener();
427 holder.expandGroupButton.setOnClickListener(holder.expandGroupListener);
432 final ViewHolder fholder = holder;
438 convertView.setTag(holder);
440 holder = (ViewHolder) convertView.getTag();
441 holder.position = position;
447 bindItemView(position, holder);
451 bindHeaderView(position, holder);
461 void bindItemView(int position, ViewHolder holder) {
463 holder.text1.setText(info.getName(getActivity()));
466 holder.text2.setVisibility(View.GONE);
468 holder.text2.setVisibility(View.VISIBLE);
469 holder.text2.setText(status);
476 holder.icon.setImageDrawable(icon);
477 holder.icon.setVisibility(icon != null ? View.VISIBLE : View.GONE);
483 holder.check.setEnabled(group.getRouteCount() > 1);
484 holder.check.setChecked(group == mEditingGroup);
495 if (holder.expandGroupButton != null) {
496 holder.expandGroupButton.setVisibility(canGroup ? View.VISIBLE : View.GONE);
497 holder.expandGroupListener.position = position;
501 void bindHeaderView(int position, ViewHolder holder) {
503 holder.text1.setText(cat.getName(getActivity()));