Code example for TableRow

Methods: addView, setOnClickListener

0
TextView textView = new TextView(this);
	    textView.setTextSize(textSize);
	    textView.setTextColor(textColor);
	    textView.setText(text); 
	    tableRow.addView(textView);
	     
	    tableRow.setOnClickListener(this);
	     
    } 
    /** 
     * add the first ROW to the table layout 
     * @param scoreTable 
     */ 
    private void headerRow(TableLayout scoreTable) {
    	TableRow header = new TableRow(this);
    	int textColor = getResources().getColor(R.color.header_top_scores_color); 
    	float textSize = getResources().getDimension(R.dimen.header_top_scores_size);
    	 
    	 
	    TextView textView = new TextView(this);