Code example for ImageButton

Methods: setImageBitmap

0
			public void onItemClick(AdapterView<?> arg0, View arg1,
					int position, long arg3)
			{ 
				// TODO Auto-generated method stub 
				imageId = image[position];
				ibFnIcon.setImageBitmap(setBitmapSize(imageId));
				popupWindow.dismiss();
			} 
 
		}); 
		this.initPopupWindow();
		// µã»÷imageButtonʵÏÖµ¯³öpopupwindow£¬Ñ¡ÔñͼƬ¡£ 
		ibFnIcon.setOnClickListener(new OnClickListener()
		{ 
 
			@Override 
			public void onClick(View arg0)
			{ 
				// TODO Auto-generated method stub 
 
				popupWindow.showAsDropDown(ibFnIcon);