Code example for Gallery

Methods: setOnItemClickListener

0
	public RSSSource getSelected() { 
		return (RSSSource)getCurrent(); 
	} 
	 
	public void show(StringSource definitionXML, Gallery gallry) {
		showSource(definitionXML, m_handler, m_template, gallry);
		//Toast.makeText(hub, source.getName(), Toast.LENGTH_SHORT).show(); 
		gallry.setOnItemClickListener(this);
	} 
	 
	public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
		m_eventExchange.putEvent(new GlobalEvent(getClass(), SELECTED ,getItem(position)));
	} 
	 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE