Code example for TableRow

Methods: setLongClickable, setOnClickListener

0
		} 
	} 
 
	protected void setRowLongClickEvent(int id, final int index) {
		TableRow tableRow = (TableRow) findViewById(id);
		tableRow.setLongClickable(true);
		tableRow.setOnClickListener(new View.OnClickListener() {
			@Override 
			public void onClick(View v) {
				resetGraphResources(index);
				displayGraphData(); 
				//return false; 
			} 
		}); 
	} 
	 
	protected void toastErrorMessage() { 
		Toast toast = Toast.makeText(this, "Error loading data", Toast.LENGTH_LONG);
		toast.show();
	}