From ca8f07b30a921223195d8a070390ae01b60236a8 Mon Sep 17 00:00:00 2001 From: dkeen Date: Sun, 5 Jun 2011 11:13:21 -0700 Subject: [PATCH] Changed arrivals to departures. Added handling for WHITE and SPCL --HG-- rename : res/layout/arrival_listing.xml => res/layout/departure_listing.xml rename : src/com/dougkeen/bart/ArrivalArrayAdapter.java => src/com/dougkeen/bart/DepartureArrayAdapter.java rename : src/com/dougkeen/bart/GetRealTimeArrivalsTask.java => src/com/dougkeen/bart/GetRealTimeDeparturesTask.java rename : src/com/dougkeen/bart/ViewArrivalsActivity.java => src/com/dougkeen/bart/ViewDeparturesActivity.java rename : src/com/dougkeen/bart/data/Arrival.java => src/com/dougkeen/bart/data/Departure.java rename : src/com/dougkeen/bart/data/RealTimeArrivals.java => src/com/dougkeen/bart/data/RealTimeDepartures.java --- AndroidManifest.xml | 2 +- ...ival_listing.xml => departure_listing.xml} | 8 +- res/menu/route_context_menu.xml | 2 +- res/values/strings.xml | 15 +- res/values/styles.xml | 8 +- ...dapter.java => DepartureArrayAdapter.java} | 42 ++--- src/com/dougkeen/bart/EtdContentHandler.java | 72 +++++--- ...sk.java => GetRealTimeDeparturesTask.java} | 24 +-- src/com/dougkeen/bart/Line.java | 18 ++ src/com/dougkeen/bart/Station.java | 3 +- ...ivity.java => ViewDeparturesActivity.java} | 170 ++++++++++-------- .../data/{Arrival.java => Departure.java} | 52 +++--- ...eArrivals.java => RealTimeDepartures.java} | 43 ++--- 13 files changed, 271 insertions(+), 188 deletions(-) rename res/layout/{arrival_listing.xml => departure_listing.xml} (77%) rename src/com/dougkeen/bart/{ArrivalArrayAdapter.java => DepartureArrayAdapter.java} (56%) rename src/com/dougkeen/bart/{GetRealTimeArrivalsTask.java => GetRealTimeDeparturesTask.java} (75%) rename src/com/dougkeen/bart/{ViewArrivalsActivity.java => ViewDeparturesActivity.java} (50%) rename src/com/dougkeen/bart/data/{Arrival.java => Departure.java} (79%) rename src/com/dougkeen/bart/data/{RealTimeArrivals.java => RealTimeDepartures.java} (56%) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 6e87e34..ae19e0b 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -35,7 +35,7 @@ - diff --git a/res/layout/arrival_listing.xml b/res/layout/departure_listing.xml similarity index 77% rename from res/layout/arrival_listing.xml rename to res/layout/departure_listing.xml index a8a00ee..44edec9 100644 --- a/res/layout/arrival_listing.xml +++ b/res/layout/departure_listing.xml @@ -8,20 +8,20 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/destinationColorBar" android:layout_alignParentTop="true"> - - - + android:layout_below="@id/topRow" style="@style/DepartureUncertaintyText" /> \ No newline at end of file diff --git a/res/menu/route_context_menu.xml b/res/menu/route_context_menu.xml index 1bf258c..d8461d3 100644 --- a/res/menu/route_context_menu.xml +++ b/res/menu/route_context_menu.xml @@ -1,5 +1,5 @@ - + diff --git a/res/values/strings.xml b/res/values/strings.xml index 363b002..dcd604e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2,7 +2,8 @@ BART Catcher Favorite Routes - Press the menu button and select \"Add route\" to add + Press the menu button and select \"Add route\" to + add a route Add a route Origin @@ -12,15 +13,17 @@ different You must select a destination station You must select an origin station - Please wait while real time arrival data is + Please wait while real time departure data is loaded... - No arrival data is currently available for this - route + No departure data is currently available for this + route. Note that there may be service advisories posted at + http://m.bart.gov/schedules/advisories/ View - View arrivals + View departures Delete Yes Cancel View details on BART site - Could not connect to BART services. Please try again later. + Could not connect to BART services. Please try + again later. diff --git a/res/values/styles.xml b/res/values/styles.xml index 9d7c199..e50bb01 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -18,7 +18,7 @@ true - - - -