1 |
torben |
362 |
package dk.thoerup.traininfo; |
2 |
|
|
|
3 |
|
|
import android.app.ListActivity; |
4 |
|
|
import android.os.Bundle; |
5 |
|
|
import android.widget.TextView; |
6 |
|
|
|
7 |
|
|
public class TimetableList extends ListActivity { |
8 |
|
|
@Override |
9 |
|
|
protected void onCreate(Bundle savedInstanceState) { |
10 |
|
|
super.onCreate(savedInstanceState); |
11 |
|
|
setContentView(R.layout.timetablelist); |
12 |
|
|
} |
13 |
|
|
/* |
14 |
|
|
* case DLG_DETAILS: |
15 |
|
|
DepartureBean currentDeparture = departures.get(selectedItemId); |
16 |
|
|
((TextView)dialog.findViewById(R.id.Time)).setText(currentDeparture.getTime()); |
17 |
|
|
((TextView)dialog.findViewById(R.id.Train)).setText(currentDeparture.getTrainNumber()); |
18 |
|
|
((TextView)dialog.findViewById(R.id.Destination)).setText( currentDeparture.getDestination()); |
19 |
|
|
((TextView)dialog.findViewById(R.id.Origin)).setText(currentDeparture.getOrigin()); |
20 |
|
|
((TextView)dialog.findViewById(R.id.Location)).setText(currentDeparture.getLocation()); |
21 |
|
|
((TextView)dialog.findViewById(R.id.Updated)).setText(currentDeparture.getLastUpdateString()); |
22 |
|
|
((TextView)dialog.findViewById(R.id.Status)).setText(currentDeparture.getStatus()); |
23 |
|
|
((TextView)dialog.findViewById(R.id.Note)).setText(currentDeparture.getNote()); |
24 |
|
|
detailsDialog = dialog; |
25 |
|
|
break; |
26 |
|
|
|
27 |
|
|
*/ |
28 |
|
|
} |