/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/DepartureList.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/DepartureList.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1071 by torben, Thu Sep 16 15:32:42 2010 UTC revision 1072 by torben, Thu Sep 16 17:13:51 2010 UTC
# Line 424  public class DepartureList extends ListA Line 424  public class DepartureList extends ListA
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                                    
# Line 434  public class DepartureList extends ListA Line 435  public class DepartureList extends ListA
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                                    
# Line 449  public class DepartureList extends ListA Line 453  public class DepartureList extends ListA
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                                                    

Legend:
Removed from v.1071  
changed lines
  Added in v.1072

  ViewVC Help
Powered by ViewVC 1.1.20