Code example for AdapterView.OnItemClickListener

Methods: onItemClick

-3
            { 
            	lst.setOnItemClickListener(new OnItemClickListener() 
	            { 
	                public void onItemClick(AdapterView<?> arg0, View arg1, int position, long id) 
	                { 
	                	listViewItemClickListener.onItemClick(arg0,arg1,position,id);  
	                } 
	            }); 
            } 
             
            if (clickListener != null) 
            { 
            	((Button)layout.findViewById(R.id.btn_refresh)).setOnClickListener(new View.OnClickListener() 
            	{ 
					public void onClick(View v)
					{ 
						clickListener.onClick(v);
					} 
				}); 
            }