Code example for ImageButton

Methods: getId

0
	} 
	public void onClick(View v) {
		if (clickListener == null)
			return ; 
		int viewId = v.getId();
		if (viewId == writeStoreButton.getId())
			clickListener.onWriteStoreClick(v);
	} 
 
	public interface OnClickListener { 
		public void onWriteStoreClick(View v);
	} 
}