diff --git a/.classpath b/.classpath index bf6c652..9dc973c 100644 --- a/.classpath +++ b/.classpath @@ -5,7 +5,6 @@ - diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..e650e93 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,9 @@ +[submodule "holoeverywhere"] + path = holoeverywhere + url = https://github.com/Prototik/HoloEverywhere.git +[submodule "nineoldandroids"] + path = nineoldandroids + url = https://github.com/JakeWharton/NineOldAndroids +[submodule "drag-sort-listview"] + path = drag-sort-listview + url = https://github.com/bauerca/drag-sort-listview diff --git a/drag-sort-listview b/drag-sort-listview new file mode 160000 index 0000000..3190f9d --- /dev/null +++ b/drag-sort-listview @@ -0,0 +1 @@ +Subproject commit 3190f9d0a8d4af65987a76af78faa418a07ea82e diff --git a/holoeverywhere b/holoeverywhere new file mode 160000 index 0000000..57b0ecd --- /dev/null +++ b/holoeverywhere @@ -0,0 +1 @@ +Subproject commit 57b0ecd306cf50d44af779a58f09761e65f3b3bd diff --git a/libs/android-support-v4.jar b/libs/android-support-v4.jar deleted file mode 100644 index 6080877..0000000 Binary files a/libs/android-support-v4.jar and /dev/null differ diff --git a/nineoldandroids b/nineoldandroids new file mode 160000 index 0000000..9f20fd7 --- /dev/null +++ b/nineoldandroids @@ -0,0 +1 @@ +Subproject commit 9f20fd77e04942fd50b95aeb1c492a38e36c06dd diff --git a/project.properties b/project.properties index 04798d9..e004053 100644 --- a/project.properties +++ b/project.properties @@ -9,8 +9,7 @@ # Project target. target=android-17 -android.library.reference.1=../ActionBarSherlock/library -android.library.reference.2=../HoloEverywhere/library -android.library.reference.3=../NineOldAndroids/library -android.library.reference.4=../android-numberpicker/library -android.library.reference.5=../drag-sort-listview/library +android.library.reference.1=holoeverywhere/library +android.library.reference.2=holoeverywhere/addons/preferences +android.library.reference.3=drag-sort-listview/library +android.library.reference.4=nineoldandroids/library diff --git a/res/layout/route_form.xml b/res/layout/route_form.xml index 4448249..db9578d 100644 --- a/res/layout/route_form.xml +++ b/res/layout/route_form.xml @@ -10,7 +10,7 @@ android:layout_width="fill_parent" android:layout_height="2dip" android:layout_alignParentTop="true" - android:background="@color/abs__holo_blue_light" /> + android:background="#ff33b5e5" /> - - + - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/com/dougkeen/bart/BartRunnerApplication.java b/src/com/dougkeen/bart/BartRunnerApplication.java index 45cf76e..112b8c2 100644 --- a/src/com/dougkeen/bart/BartRunnerApplication.java +++ b/src/com/dougkeen/bart/BartRunnerApplication.java @@ -8,9 +8,9 @@ import java.util.List; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.ObjectUtils; +import org.holoeverywhere.app.Application; import android.app.AlarmManager; -import android.app.Application; import android.content.Context; import android.media.MediaPlayer; import android.os.Parcel; diff --git a/src/com/dougkeen/bart/activities/AbstractRouteSelectionFragment.java b/src/com/dougkeen/bart/activities/AbstractRouteSelectionFragment.java index 630a260..3a3cc92 100644 --- a/src/com/dougkeen/bart/activities/AbstractRouteSelectionFragment.java +++ b/src/com/dougkeen/bart/activities/AbstractRouteSelectionFragment.java @@ -1,5 +1,13 @@ package com.dougkeen.bart.activities; +import org.holoeverywhere.LayoutInflater; +import org.holoeverywhere.app.AlertDialog; +import org.holoeverywhere.app.Dialog; +import org.holoeverywhere.app.DialogFragment; +import org.holoeverywhere.widget.ArrayAdapter; +import org.holoeverywhere.widget.Spinner; +import org.holoeverywhere.widget.Toast; + import android.content.Context; import android.content.DialogInterface; import android.content.SharedPreferences; @@ -8,13 +16,6 @@ import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.view.View; -import com.WazaBe.HoloEverywhere.ArrayAdapter; -import com.WazaBe.HoloEverywhere.LayoutInflater; -import com.WazaBe.HoloEverywhere.app.AlertDialog; -import com.WazaBe.HoloEverywhere.app.Dialog; -import com.WazaBe.HoloEverywhere.app.DialogFragment; -import com.WazaBe.HoloEverywhere.widget.Spinner; -import com.WazaBe.HoloEverywhere.widget.Toast; import com.dougkeen.bart.R; import com.dougkeen.bart.model.Station; diff --git a/src/com/dougkeen/bart/activities/RoutesListActivity.java b/src/com/dougkeen/bart/activities/RoutesListActivity.java index 4a74074..893581e 100644 --- a/src/com/dougkeen/bart/activities/RoutesListActivity.java +++ b/src/com/dougkeen/bart/activities/RoutesListActivity.java @@ -3,6 +3,12 @@ package com.dougkeen.bart.activities; import java.util.Calendar; import java.util.TimeZone; +import org.holoeverywhere.app.Activity; +import org.holoeverywhere.app.AlertDialog; +import org.holoeverywhere.app.AlertDialog.Builder; +import org.holoeverywhere.app.DialogFragment; +import org.holoeverywhere.widget.TextView; + import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; @@ -13,11 +19,6 @@ import android.widget.AdapterView; import android.widget.Button; import android.widget.ListAdapter; -import com.WazaBe.HoloEverywhere.app.AlertDialog; -import com.WazaBe.HoloEverywhere.app.AlertDialog.Builder; -import com.WazaBe.HoloEverywhere.app.DialogFragment; -import com.WazaBe.HoloEverywhere.sherlock.SActivity; -import com.WazaBe.HoloEverywhere.widget.TextView; import com.actionbarsherlock.view.ActionMode; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; @@ -48,12 +49,14 @@ import com.googlecode.androidannotations.annotations.rest.RestService; import com.mobeta.android.dslv.DragSortListView; @EActivity(R.layout.main) -public class RoutesListActivity extends SActivity implements TickSubscriber { +public class RoutesListActivity extends Activity implements TickSubscriber { private static final String NO_DELAYS_REPORTED = "No delays reported"; private static final TimeZone PACIFIC_TIME = TimeZone .getTimeZone("America/Los_Angeles"); + private static final String TAG = "RoutesListActivity"; + @InstanceState StationPair mCurrentlySelectedStationPair; diff --git a/src/com/dougkeen/bart/activities/TrainAlarmDialogFragment.java b/src/com/dougkeen/bart/activities/TrainAlarmDialogFragment.java index 023bec9..402fa74 100644 --- a/src/com/dougkeen/bart/activities/TrainAlarmDialogFragment.java +++ b/src/com/dougkeen/bart/activities/TrainAlarmDialogFragment.java @@ -1,6 +1,11 @@ package com.dougkeen.bart.activities; -import net.simonvt.widget.NumberPicker; +import org.holoeverywhere.LayoutInflater; +import org.holoeverywhere.app.AlertDialog; +import org.holoeverywhere.app.Dialog; +import org.holoeverywhere.app.DialogFragment; +import org.holoeverywhere.widget.NumberPicker; + import android.content.Context; import android.content.DialogInterface; import android.content.SharedPreferences; @@ -9,10 +14,6 @@ import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.view.View; -import com.WazaBe.HoloEverywhere.LayoutInflater; -import com.WazaBe.HoloEverywhere.app.AlertDialog; -import com.WazaBe.HoloEverywhere.app.Dialog; -import com.WazaBe.HoloEverywhere.app.DialogFragment; import com.dougkeen.bart.BartRunnerApplication; import com.dougkeen.bart.R; import com.dougkeen.bart.model.Departure; diff --git a/src/com/dougkeen/bart/activities/ViewDeparturesActivity.java b/src/com/dougkeen/bart/activities/ViewDeparturesActivity.java index bc44b84..276668d 100644 --- a/src/com/dougkeen/bart/activities/ViewDeparturesActivity.java +++ b/src/com/dougkeen/bart/activities/ViewDeparturesActivity.java @@ -2,6 +2,12 @@ package com.dougkeen.bart.activities; import java.util.List; +import org.holoeverywhere.app.Activity; +import org.holoeverywhere.widget.ListView; +import org.holoeverywhere.widget.ProgressBar; +import org.holoeverywhere.widget.TextView; +import org.holoeverywhere.widget.Toast; + import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.ComponentName; @@ -25,11 +31,6 @@ import android.view.WindowManager; import android.widget.AdapterView; import android.widget.Checkable; -import com.WazaBe.HoloEverywhere.sherlock.SActivity; -import com.WazaBe.HoloEverywhere.widget.ListView; -import com.WazaBe.HoloEverywhere.widget.ProgressBar; -import com.WazaBe.HoloEverywhere.widget.TextView; -import com.WazaBe.HoloEverywhere.widget.Toast; import com.actionbarsherlock.view.ActionMode; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; @@ -51,7 +52,7 @@ import com.dougkeen.bart.services.EtdService_; import com.dougkeen.util.Observer; import com.dougkeen.util.WakeLocker; -public class ViewDeparturesActivity extends SActivity implements +public class ViewDeparturesActivity extends Activity implements EtdServiceListener { private StationPair mStationPair; diff --git a/src/com/dougkeen/bart/activities/ViewMapActivity.java b/src/com/dougkeen/bart/activities/ViewMapActivity.java index 93dd7f3..7e13e40 100644 --- a/src/com/dougkeen/bart/activities/ViewMapActivity.java +++ b/src/com/dougkeen/bart/activities/ViewMapActivity.java @@ -1,15 +1,16 @@ package com.dougkeen.bart.activities; +import org.holoeverywhere.app.Activity; + import android.os.Bundle; import android.webkit.WebView; -import com.WazaBe.HoloEverywhere.sherlock.SActivity; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; import com.actionbarsherlock.view.MenuItem; import com.dougkeen.bart.R; -public class ViewMapActivity extends SActivity { +public class ViewMapActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { diff --git a/src/com/dougkeen/bart/services/EtdService.java b/src/com/dougkeen/bart/services/EtdService.java index 427cacf..39a8d3b 100644 --- a/src/com/dougkeen/bart/services/EtdService.java +++ b/src/com/dougkeen/bart/services/EtdService.java @@ -5,7 +5,6 @@ import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.WeakHashMap; import org.apache.commons.lang3.math.NumberUtils;