424 |
|
|
425 |
TextView h1 = new TextView(this); |
TextView h1 = new TextView(this); |
426 |
h1.setText("Metro"); |
h1.setText("Metro"); |
427 |
|
h1.setTextSize(16); |
428 |
h1.setTypeface( Typeface.defaultFromStyle(Typeface.BOLD)); |
h1.setTypeface( Typeface.defaultFromStyle(Typeface.BOLD)); |
429 |
|
|
430 |
|
|
435 |
|
|
436 |
|
|
437 |
TextView h2 = new TextView(this); |
TextView h2 = new TextView(this); |
438 |
|
h2.setTextSize(16); |
439 |
h2.setTypeface( Typeface.defaultFromStyle(Typeface.BOLD)); |
h2.setTypeface( Typeface.defaultFromStyle(Typeface.BOLD)); |
440 |
h2.setText("Om minutter"); |
h2.setText("Om minutter"); |
441 |
|
|
442 |
|
params = new TableRow.LayoutParams(); |
443 |
|
params.weight = 2; |
444 |
head.addView(h2,params); |
head.addView(h2,params); |
445 |
|
|
446 |
|
|
453 |
Log.e("Test", "" + entry.destination); |
Log.e("Test", "" + entry.destination); |
454 |
|
|
455 |
TextView v1 = new TextView(this); |
TextView v1 = new TextView(this); |
456 |
v1.setText( entry.metro ); |
v1.setTextSize(16); |
457 |
|
v1.setText( entry.metro ); |
458 |
row.addView(v1); |
row.addView(v1); |
459 |
|
|
460 |
TextView v2 = new TextView(this); |
TextView v2 = new TextView(this); |
461 |
|
v2.setTextSize(16); |
462 |
v2.setText( entry.destination ); |
v2.setText( entry.destination ); |
463 |
row.addView(v2); |
row.addView(v2); |
464 |
|
|
465 |
TextView v3 = new TextView(this); |
TextView v3 = new TextView(this); |
466 |
|
v3.setTextSize(16); |
467 |
v3.setText( entry.minutes ); |
v3.setText( entry.minutes ); |
468 |
row.addView(v3); |
row.addView(v3); |
469 |
|
|