Code example for View

Methods: findViewByIdsetTag

0
 
			// Creates a ViewHolder and store references to the two children 
			// views 
			// we want to bind data to. 
			holder = new ViewHolder();
			holder.text = (TextView) convertView.findViewById(mIds[0]);
 
			convertView.setTag(holder);
		} else { 
			// Get the ViewHolder back to get fast access to the TextView 
			// and the ImageView. 
			holder = (ViewHolder) convertView.getTag();
		} 
 
		// Bind the data efficiently with the holder. 
		holder.text.setText(mContent.get(position));
 
		return convertView;
	} 
 
Experience pair programming with AI  Get Codota for Java