My problem was to create a dynamic table and not hard xml-coded. So I’ve wrote a table class to create it programmatically. The created table has also borders. TableGenerator class public class TableGenerator { private final Context mContext; private TableLayout mTable; private TableLayout.LayoutParams rowParams = new TableLayout.LayoutParams(); private TableRow.LayoutParams colParams = new TableRow.LayoutParams(); public TableGenerator(Context… Read More


meine erste selbst geschriebene Javascript-Klasse. function Table(id) { this.rows = 0; this.cols = 0; if(id != null) this.table = document.getElementById(id); } Table.prototype = { createTable: function(parentElement,id,rows,cols,contentArray) { this.table = document.createElement("table"); this.table.setAttribute("id",id); document.getElementById(parentElement).appendChild(this.table); for(var i_rows = 0; i_rows < rows; i_rows ++) { this.addRow(contentArray[i_rows*cols]); } var colArray = new Array(); for(var i_cols = 1; i_cols <… Read More