Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public class TextViewHTMLTest extends Activity { TextView tvTestAnzeige; TableLayout tlMain; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); String text = "Here comes the table with HTML formatting"; if (text.contains("")) { String[] textBeforeTable = text.split("

"); tvTestAnzeige = (TextView) findViewById(R.id.test); tvTestAnzeige.setText(textBeforeTable[0]); tvTestAnzeige.setPadding(0, 0, 0, 20); tlMain = (TableLayout) findViewById(R.id.tlMain); String[] trs = text.split(""); // Check, ob die Tabelle ein TH Element besitzt. String firstTag = "th"; if (!trs[0].contains("")) { firstTag = "td"; } String[] ths = trs[0].split("<" + firstTag + ">"); String[] th1 = ths[0].split("<" + firstTag + ">"); String[] th2 = ths[1].split(""); String firstThColumn = "" + th1[1].trim() + ""; String secondThColumn = "" + th2[0].trim() + ""; /* Create a new row to be added. */ TableRow trTh = new TableRow(this); trTh.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); TextView tvFirstThCol = new TextView(this); tvFirstThCol.setText(Html.fromHtml(firstThColumn)); tvFirstThCol.setPadding(1, 1, 10, 1); trTh.addView(tvFirstThCol); TextView tvSecondThCol = new TextView(this); tvSecondThCol.setText(Html.fromHtml(secondThColumn)); tvSecondThCol.setPadding(10, 1, 1, 1); trTh.addView(tvSecondThCol); /* Add row to TableLayout. */ tlMain.addView(trTh, new TableLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); for (int i = 1; i < trs.length; i++) { String[] tds = trs[i].split(""); String[] td1 = tds[0].split(""); String[] td2 = tds[1].split(""); String firstTdColumn = td1[1].trim(); String secondTdColumn = td2[0].trim(); /* Create a new row to be added. */ TableRow trTd = new TableRow(this); trTd.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); TextView tvFirstTdCol = new TextView(this); tvFirstTdCol.setText(firstTdColumn); tvFirstTdCol.setPadding(1, 1, 10, 1); trTd.addView(tvFirstTdCol); TextView tvSecondTdCol = new TextView(this); tvSecondTdCol.setText(secondTdColumn); tvSecondTdCol.setPadding(10, 1, 1, 1); trTd.addView(tvSecondTdCol); /* Add row to TableLayout. */ tlMain.addView(trTd, new TableLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); } } else { tvTestAnzeige = (TextView) findViewById(R.id.test); tvTestAnzeige.setText(text); } }