Code example for TableRow

Methods: findViewById, setClickable, setFocusable, setOnClickListener

0
		headerTable.setClickable(true);
		 
		 
		TableRow headerRow = getHeaderRow();
		headerTable.addView(headerRow);
		TextView text = (TextView) headerRow.findViewById(R.id.table_header_row_text);
		text.setText(R.string.btn_go_edit_project);
		 
		headerRow.setClickable(true);
		headerRow.setFocusable(true);
		headerRow.setOnClickListener(new OnClickListener() {
			 
			@Override 
			public void onClick(View arg0) {
				editProject(); 
			} 
		}); 
	} 
	 
	private TableRow getHeaderRow() {
Connect your IDE to all the code out there  Get Codota for Java