7 |
import android.view.View; |
import android.view.View; |
8 |
import android.view.ViewGroup; |
import android.view.ViewGroup; |
9 |
import android.widget.BaseAdapter; |
import android.widget.BaseAdapter; |
10 |
|
import android.widget.ImageView; |
11 |
import android.widget.TextView; |
import android.widget.TextView; |
12 |
|
|
13 |
public class DepartureListAdapter extends BaseAdapter { |
public class DepartureListAdapter extends BaseAdapter { |
58 |
((TextView) root.findViewById(R.id.Time)).setText(station.getTime()); |
((TextView) root.findViewById(R.id.Time)).setText(station.getTime()); |
59 |
((TextView) root.findViewById(R.id.Destination)).setText(station.getDestination()); |
((TextView) root.findViewById(R.id.Destination)).setText(station.getDestination()); |
60 |
|
|
61 |
|
if (station.getStatus().length() > 0 || station.getNote().length() > 0) { |
62 |
|
ImageView image = (ImageView) root.findViewById(R.id.Icon); |
63 |
|
image.setImageResource(R.drawable.info20); |
64 |
|
} |
65 |
|
|
66 |
|
|
67 |
return root; |
return root; |
68 |
} |
} |