Code example for ImageView

Methods: setImageResource, setOnClickListener

0
						Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); 
				deleteRow(); 
			} else { 
				mName.setText(mNameString); 
				if (mTypeDrawable > 0) { 
					mType.setImageResource(mTypeDrawable); 
					mType.setOnClickListener(new OnClickListener() { 
 
						public void onClick(View view) { 
							new AlertDialog.Builder(ContentListRow.this 
									.getContext()).setTitle("info").setIcon( 
									mTypeDrawable).setMessage( 
									getResources().getString(mTypeString)) 
									.show(); 
 
						} 
					}); 
				} 
				mIcon.setImageDrawable(mIconDrawable); 
				mTags.setText(mTagsString); 
			}