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

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

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

revision 1962 by torben, Tue Aug 21 19:48:03 2012 UTC revision 1963 by torben, Sat Mar 30 10:31:12 2013 UTC
# Line 73  public class DepartureListAdapter extend Line 73  public class DepartureListAdapter extend
73                                    
74                  ((TextView) root.findViewById(R.id.Time)).setText(station.getTime());                  ((TextView) root.findViewById(R.id.Time)).setText(station.getTime());
75                  ((TextView) root.findViewById(R.id.Destination)).setText(station.getDestination());                  ((TextView) root.findViewById(R.id.Destination)).setText(station.getDestination());
76                  ((TextView) root.findViewById(R.id.Platform)).setText(station.getPlatform());                  
77                    //Platform source'n TritInfo er ikke perfekt - så brug den ikke indtil videre
78                    //((TextView) root.findViewById(R.id.Platform)).setText(station.getPlatform());
79                                    
80                  if ( (station.getStatus() != null && station.getStatus().length() > 0) || (station.getNote() != null && station.getNote().length() > 0) ) {                  if ( (station.getStatus() != null && station.getStatus().length() > 0) || (station.getNote() != null && station.getNote().length() > 0) ) {
81                          ImageView image = (ImageView) root.findViewById(R.id.InfoIcon);                          ImageView image = (ImageView) root.findViewById(R.id.InfoIcon);
# Line 135  public class DepartureListAdapter extend Line 137  public class DepartureListAdapter extend
137                                    
138                  //Missing IB ? -- not mentioned on bane.dk                  //Missing IB ? -- not mentioned on bane.dk
139                  //Missing RX ? -- not mentioned on bane.dk                  //Missing RX ? -- not mentioned on bane.dk
140    
141                    for (int i=0; i<=5; i++) {
142                            String add = (i==0) ? "" : "" + i;
143                                    
144                                            imageMap.put("a" + add, R.drawable.stog_a);   //S-Tog: A banen #00b5f1                          
145                  imageMap.put("a", R.drawable.stog_a);   //S-Tog: A banen #00b5f1                                                          imageMap.put("b" + add, R.drawable.stog_b);   //S-Tog:B banen #5aba52
146                  imageMap.put("b", R.drawable.stog_b);   //S-Tog:B banen #5aba52                          imageMap.put("bx" + add, R.drawable.stog_bx); //S-Tog:Bx banen #a4d17d
147                  imageMap.put("bx", R.drawable.stog_bx); //S-Tog:Bx banen #a4d17d                          imageMap.put("c" + add, R.drawable.stog_c);   //S-Tog:C banen #f89734
148                  imageMap.put("c", R.drawable.stog_c);   //S-Tog:C banen #f89734                          imageMap.put("e" + add, R.drawable.stog_e);   //S-Tog:E banen #837eba
149                  imageMap.put("e", R.drawable.stog_e);   //S-Tog:E banen #837eba                          imageMap.put("f" + add, R.drawable.stog_f);   //S-Tog:F banen #ffc32d
150                  imageMap.put("f", R.drawable.stog_f);   //S-Tog:F banen #ffc32d                          imageMap.put("h" + add, R.drawable.stog_h);   //S-Tog:H banen #f05737
151                  imageMap.put("h", R.drawable.stog_h);   //S-Tog:H banen #f05737                  }
                   
152    
153    
154          }          }

Legend:
Removed from v.1962  
changed lines
  Added in v.1963

  ViewVC Help
Powered by ViewVC 1.1.20