Code example for TableRow

Methods: addView, setLayoutParams, setPadding

0
		int anzahl = 0;
 
		if (text.equals("Aktuelles Tagesmenü")) {
			anzahl = 4;
			// Tabellenzeile mit Datumsinhalt einf�gen 
			TableRow row_date = new TableRow(this);
			row_date.setLayoutParams(new LayoutParams(300,
					LayoutParams.WRAP_CONTENT));
			TextView text_date = new TextView(this);
			text_date.setWidth(100);
			text_date.setTextColor(Color.BLACK);
			text_date.setTextSize(14);
			text_date.setText(datum5);
			row_date.setPadding(0, 8, 0, 0);
			row_date.addView(text_date);
			table.addView(row_date);
		} 
		if (text.equals("Spezielle Menüs der Woche")) {
			anzahl = 9;
		} 
Stop searching for code, let great code find you!  Add Codota to your java IDE