Code example for SearchView

Methods: clearFocus

0
 
	@Override 
	public boolean onQueryTextSubmit(String query) {
		this.keyword = query;
		this.configuration(this.keyword);
		this.searchView.clearFocus();
		return true; 
	} 
	/** 
	 * configuracao apos entrada de busca 
	 * @param str 
	 */ 
	private void configuration(String str) {		
		List<Establishment> es = this.getModelInstance().getEstablishment("nome",str);
		this.onModelReceive(Establishment.class,es);	
	} 
	/** 
	 * recebimento assincrono 
	 * @param c 
	 * @param data 
	 */