Code example for ImageView

Methods: setBackgroundResource

0
	public Button getButton() {
		return btn;
	} 
 
	public void setIcon(int resid) {
		img.setBackgroundResource(resid);
	} 
 
	public void setIcon(Drawable d) {
		img.setBackgroundDrawable(d);
	} 
 
	public void setIcon(Bitmap bmp) {
		img.setImageBitmap(bmp);
	} 
 
	public Button getDeleteButton() {
		return btnDelete;
	} 
 
	private void init() {