Permalink
Browse files

Mostly working...

  • Loading branch information...
justinberry committed Mar 16, 2013
1 parent 9b0996a commit 20d271fd9516d833eb0a894b4f9ce8b41b23f691
Showing with 7,635 additions and 1,433 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 .gitmodules
  3. +41 −0 libraries/.classpath
  4. +15 −0 libraries/.project
  5. +5 −0 libraries/.settings/org.eclipse.jdt.core.prefs
  6. +18 −0 libraries/mapviewballoons/AndroidManifest.xml
  7. +97 −0 libraries/mapviewballoons/build.xml
  8. BIN libraries/mapviewballoons/libs/maps.jar
  9. +53 −0 libraries/mapviewballoons/mapviewballoons.iml
  10. +20 −0 libraries/mapviewballoons/proguard-project.txt
  11. +14 −0 libraries/mapviewballoons/project.properties
  12. BIN libraries/mapviewballoons/res/drawable-hdpi/balloon_disclosure.png
  13. BIN libraries/mapviewballoons/res/drawable-hdpi/balloon_overlay_close.png
  14. BIN libraries/mapviewballoons/res/drawable-hdpi/balloon_overlay_focused.9.png
  15. BIN libraries/mapviewballoons/res/drawable-hdpi/balloon_overlay_unfocused.9.png
  16. BIN libraries/mapviewballoons/res/drawable-tvdpi/balloon_overlay_focused.9.png
  17. BIN libraries/mapviewballoons/res/drawable-tvdpi/balloon_overlay_unfocused.9.png
  18. +9 −0 libraries/mapviewballoons/res/drawable/balloon_overlay_bg_selector.xml
  19. +67 −0 libraries/mapviewballoons/res/layout/balloon_overlay.xml
  20. +5 −0 libraries/mapviewballoons/res/values/ids.xml
  21. +7 −0 libraries/mapviewballoons/src/main/java/com/readystatesoftware/maps/OnSingleTapListener.java
  22. +104 −0 libraries/mapviewballoons/src/main/java/com/readystatesoftware/maps/TapControlledMapView.java
  23. +360 −0 .../mapviewballoons/src/main/java/com/readystatesoftware/mapviewballoons/BalloonItemizedOverlay.java
  24. +144 −0 ...ries/mapviewballoons/src/main/java/com/readystatesoftware/mapviewballoons/BalloonOverlayView.java
  25. +13 −0 libraries/mapviewballoons/src/main/main2.iml
  26. +47 −18 resilience-app/AndroidManifest.xml
  27. +81 −16 resilience-app/Resilience.iml
  28. +5 −1 resilience-app/build.xml
  29. BIN resilience-app/libs/Parse-1.1.6.jar
  30. BIN resilience-app/libs/open311-java-1.0.jar
  31. +54 −2 resilience-app/pom.xml
  32. +20 −0 resilience-app/proguard-project.txt
  33. +3 −1 resilience-app/project.properties
  34. BIN resilience-app/res/drawable-hdpi/content_new.png
  35. BIN resilience-app/res/drawable-hdpi/create_contact.png
  36. BIN resilience-app/res/drawable-hdpi/ic_action_search.png
  37. BIN resilience-app/res/drawable-hdpi/ic_launcher.png
  38. BIN resilience-app/res/drawable-hdpi/ic_menu_preferences.png
  39. BIN resilience-app/res/drawable-hdpi/ic_menu_refresh.png
  40. BIN resilience-app/res/drawable-hdpi/ic_menu_start_conversation.png
  41. BIN resilience-app/res/drawable-hdpi/icon.png
  42. BIN resilience-app/res/drawable-hdpi/navigation_forward.png
  43. BIN resilience-app/res/drawable-ldpi/create_contact.png
  44. BIN resilience-app/res/drawable-ldpi/{icon.png → ic_launcher.png}
  45. BIN resilience-app/res/drawable-mdpi/content_new.png
  46. BIN resilience-app/res/drawable-mdpi/create_contact.png
  47. BIN resilience-app/res/drawable-mdpi/ic_action_search.png
  48. BIN resilience-app/res/drawable-mdpi/{icon.png → ic_launcher.png}
  49. BIN resilience-app/res/drawable-mdpi/navigation_forward.png
  50. BIN resilience-app/res/drawable-xhdpi/content_new.png
  51. BIN resilience-app/res/drawable-xhdpi/ic_action_search.png
  52. BIN resilience-app/res/drawable-xhdpi/navigation_forward.png
  53. +6 −0 resilience-app/res/drawable/background_border.xml
  54. BIN resilience-app/res/drawable/blue_poi.png
  55. BIN resilience-app/res/drawable/create_incident.png
  56. BIN resilience-app/res/drawable/electricity.png
  57. BIN resilience-app/res/drawable/electricity_white.png
  58. BIN resilience-app/res/drawable/fire.png
  59. BIN resilience-app/res/drawable/fire_white.png
  60. BIN resilience-app/res/drawable/flood.png
  61. BIN resilience-app/res/drawable/flood_white.png
  62. BIN resilience-app/res/drawable/livestock.png
  63. BIN resilience-app/res/drawable/livestock_white.png
  64. BIN resilience-app/res/drawable/map_icon.png
  65. BIN resilience-app/res/drawable/pollution.png
  66. BIN resilience-app/res/drawable/pollution_white.png
  67. BIN resilience-app/res/drawable/roads.png
  68. BIN resilience-app/res/drawable/roads_white.png
  69. BIN resilience-app/res/drawable/unknown.png
  70. BIN resilience-app/res/drawable/unknown_white.png
  71. BIN resilience-app/res/drawable/wildlife.png
  72. BIN resilience-app/res/drawable/wildlife_white.png
  73. +8 −0 resilience-app/res/layout/activity_create_incident.xml
  74. +108 −0 resilience-app/res/layout/activity_edit_incident.xml
  75. +11 −0 resilience-app/res/layout/activity_feedback.xml
  76. +7 −0 resilience-app/res/layout/activity_incident_list_view.xml
  77. +21 −0 resilience-app/res/layout/activity_manage_profile.xml
  78. +19 −0 resilience-app/res/layout/activity_map_view.xml
  79. +19 −0 resilience-app/res/layout/activity_preference.xml
  80. +130 −0 resilience-app/res/layout/activity_view_incident.xml
  81. +39 −0 resilience-app/res/layout/fragment_feedback.xml
  82. +0 −18 resilience-app/res/layout/home.xml
  83. +75 −0 resilience-app/res/layout/image_balloon_overlay.xml
  84. +16 −0 resilience-app/res/layout/image_popup_layout.xml
  85. +61 −0 resilience-app/res/layout/incident_list_view_item.xml
  86. +35 −0 resilience-app/res/layout/main.xml
  87. +32 −0 resilience-app/res/menu/action_bar.xml
  88. +14 −0 resilience-app/res/menu/action_bar_minimal.xml
  89. +21 −0 resilience-app/res/menu/activity_view_incident.xml
  90. +26 −0 resilience-app/res/values/arrays.xml
  91. +4 −0 resilience-app/res/values/dimens.xml
  92. +10 −0 resilience-app/res/values/generated-keys.xml
  93. +4 −0 resilience-app/res/values/integers.xml
  94. +61 −0 resilience-app/res/values/preferences.xml
  95. +6 −0 resilience-app/res/values/roboguice.xml
  96. +38 −1 resilience-app/res/values/strings.xml
  97. +5 −0 resilience-app/res/values/styles.xml
  98. +40 −0 resilience-app/res/xml/common_preferences.xml
  99. +15 −0 resilience-app/res/xml/user_preferences.xml
  100. +0 −9 resilience-app/src/main/java/au/com/dius/resilience/ApplicationModule.java
  101. +15 −0 resilience-app/src/main/java/au/com/dius/resilience/Constants.java
  102. +0 −14 resilience-app/src/main/java/au/com/dius/resilience/MySampleApplication.java
  103. +59 −0 resilience-app/src/main/java/au/com/dius/resilience/ResilienceApplication.java
  104. +19 −0 resilience-app/src/main/java/au/com/dius/resilience/RuntimeProperties.java
  105. +0 −31 resilience-app/src/main/java/au/com/dius/resilience/StarterActivity.java
  106. +61 −0 resilience-app/src/main/java/au/com/dius/resilience/actionbar/ActionBarHandler.java
  107. +23 −0 resilience-app/src/main/java/au/com/dius/resilience/bootstrap/ResilienceModule.java
  108. +117 −0 resilience-app/src/main/java/au/com/dius/resilience/facade/CameraFacade.java
  109. +12 −0 resilience-app/src/main/java/au/com/dius/resilience/intent/Intents.java
  110. +72 −0 resilience-app/src/main/java/au/com/dius/resilience/loader/AbstractAsyncListLoader.java
  111. +35 −0 resilience-app/src/main/java/au/com/dius/resilience/loader/IncidentListLoader.java
  112. +45 −0 resilience-app/src/main/java/au/com/dius/resilience/loader/PhotoListLoader.java
  113. +31 −0 resilience-app/src/main/java/au/com/dius/resilience/loader/ServiceListLoader.java
  114. +34 −0 resilience-app/src/main/java/au/com/dius/resilience/model/Category.java
  115. +12 −0 resilience-app/src/main/java/au/com/dius/resilience/model/Device.java
  116. +21 −0 resilience-app/src/main/java/au/com/dius/resilience/model/Feedback.java
  117. +28 −0 resilience-app/src/main/java/au/com/dius/resilience/model/Impact.java
  118. +156 −0 resilience-app/src/main/java/au/com/dius/resilience/model/Incident.java
  119. +35 −0 resilience-app/src/main/java/au/com/dius/resilience/model/Photo.java
  120. +22 −0 resilience-app/src/main/java/au/com/dius/resilience/model/Point.java
  121. +42 −0 resilience-app/src/main/java/au/com/dius/resilience/model/Profile.java
  122. +31 −0 ...app/src/main/java/au/com/dius/resilience/observer/IntentBasedLoaderNotifierBroadcastReceiver.java
  123. +28 −0 resilience-app/src/main/java/au/com/dius/resilience/observer/PreferenceChangeBroadcastReceiver.java
  124. +5 −0 resilience-app/src/main/java/au/com/dius/resilience/observer/PreferenceChangeListener.java
  125. +21 −0 resilience-app/src/main/java/au/com/dius/resilience/persistence/Columns.java
  126. +27 −0 resilience-app/src/main/java/au/com/dius/resilience/persistence/async/AsyncParam.java
  127. +49 −0 resilience-app/src/main/java/au/com/dius/resilience/persistence/async/BackgroundDataOperation.java
  128. +16 −0 resilience-app/src/main/java/au/com/dius/resilience/persistence/repository/IncidentRepository.java
  129. +12 −0 resilience-app/src/main/java/au/com/dius/resilience/persistence/repository/PhotoRepository.java
  130. +57 −0 resilience-app/src/main/java/au/com/dius/resilience/persistence/repository/Repository.java
  131. +38 −0 ...ence-app/src/main/java/au/com/dius/resilience/persistence/repository/RepositoryCommandResult.java
  132. +14 −0 .../src/main/java/au/com/dius/resilience/persistence/repository/RepositoryCommandResultListener.java
  133. +25 −0 resilience-app/src/main/java/au/com/dius/resilience/persistence/repository/impl/ModelAdapter.java
  134. +68 −0 ...ce-app/src/main/java/au/com/dius/resilience/persistence/repository/impl/ParseIncidentAdapter.java
  135. +132 −0 ...app/src/main/java/au/com/dius/resilience/persistence/repository/impl/ParseIncidentRepository.java
  136. +109 −0 ...ce-app/src/main/java/au/com/dius/resilience/persistence/repository/impl/ParsePhotoRepository.java
  137. +195 −0 resilience-app/src/main/java/au/com/dius/resilience/persistence/repository/impl/ParseRepository.java
  138. +112 −0 ...ience-app/src/main/java/au/com/dius/resilience/persistence/repository/impl/PreferenceAdapter.java
  139. +31 −0 ...ience-app/src/main/java/au/com/dius/resilience/persistence/repository/impl/ProfileRepository.java
  140. +12 −0 ...ience-app/src/main/java/au/com/dius/resilience/persistence/repository/impl/RepositoryCommand.java
  141. +32 −0 resilience-app/src/main/java/au/com/dius/resilience/receiver/IncidentTrackedBroadcastReceiver.java
  142. +32 −0 resilience-app/src/main/java/au/com/dius/resilience/receiver/IncidentUnTrackedBroadcastReceiver.java
  143. +37 −0 resilience-app/src/main/java/au/com/dius/resilience/receiver/LocationChangedReceiver.java
  144. +35 −0 resilience-app/src/main/java/au/com/dius/resilience/service/CreateIncidentService.java
  145. +46 −0 resilience-app/src/main/java/au/com/dius/resilience/service/SendFeedbackService.java
  146. +49 −0 resilience-app/src/main/java/au/com/dius/resilience/service/TrackIncidentService.java
  147. +48 −0 resilience-app/src/main/java/au/com/dius/resilience/service/UntrackIncidentService.java
  148. +74 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/AppendableListPreference.java
  149. +12 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/Codes.java
  150. +25 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/Themer.java
  151. +19 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/activity/CreateIncidentActivity.java
  152. +168 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/activity/EditIncidentActivity.java
  153. +65 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/activity/FeedbackActivity.java
  154. +71 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/activity/IncidentListActivity.java
  155. +69 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/activity/ManageProfileActivity.java
  156. +98 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/activity/MapViewActivity.java
  157. +27 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/activity/PhotoViewActivity.java
  158. +20 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/activity/PreferenceActivity.java
  159. +133 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/activity/ResilienceActivity.java
  160. +270 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/activity/ViewIncidentActivity.java
  161. +82 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/adapter/ListViewAdapter.java
  162. +101 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/fragment/CommonPreferencesFragment.java
  163. +44 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/fragment/FeedbackFragment.java
  164. +47 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/fragment/UserPreferencesFragment.java
  165. +87 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/map/ImageBalloonOverlayView.java
  166. +97 −0 resilience-app/src/main/java/au/com/dius/resilience/ui/map/IncidentOverlay.java
  167. +0 −7 resilience-app/src/main/java/au/com/dius/resilience/util/CurrentTime.java
  168. +10 −0 resilience-app/src/main/resources/values/generated-keys.xml
  169. +0 −19 resilience-app/src/test/java/au/com/dius/resilience/StarterActivityTest.java
  170. +0 −23 resilience-app/src/test/java/au/com/dius/resilience/StarterActivityWithFestTest.java
  171. +0 −26 resilience-app/src/test/java/au/com/dius/resilience/StarterActivityWithRoboguiceTest.java
  172. +0 −16 resilience-app/src/test/java/au/com/dius/resilience/test/support/FakeCurrentTime.java
  173. +0 −12 resilience-app/src/test/java/au/com/dius/resilience/test/support/InjectMock.java
  174. +0 −34 resilience-app/src/test/java/au/com/dius/resilience/test/support/InjectMockAnnotations.java
  175. +0 −43 resilience-app/src/test/java/au/com/dius/resilience/test/support/InjectMockAnnotationsTest.java
  176. +0 −21 resilience-app/src/test/java/au/com/dius/resilience/test/support/InjectMockModule.java
  177. +0 −437 resilience-app/src/test/java/au/com/dius/resilience/test/support/JsonEditor.java
  178. +0 −623 resilience-app/src/test/java/au/com/dius/resilience/test/support/JsonEditorTest.java
  179. +0 −21 resilience-app/src/test/java/au/com/dius/resilience/test/support/MockitoTest.java
  180. +0 −39 ...nce-app/src/test/java/au/com/dius/resilience/test/support/RobolectricTestRunnerWithInjection.java
  181. +101 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/facade/CameraFacadeTest.java
  182. +56 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/fragment/FeedbackFragmentTest.java
  183. +234 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/fragment/ResilienceShadowFragment.java
  184. +170 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/loader/IncidentListLoaderTest.java
  185. +62 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/loader/PhotoListLoaderTest.java
  186. +69 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/loader/ServiceListLoaderTest.java
  187. +63 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/loader/ShadowLoader.java
  188. +94 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/map/IncidentOverlayTest.java
  189. +22 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/model/CategoryTest.java
  190. +60 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/model/IncidentTest.java
  191. +68 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/model/ProfileTest.java
  192. +70 −0 ...ava/au/com/dius/resilience/test/unit/observer/IntentBasedLoaderNotifierBroadcastReceiverTest.java
  193. +62 −0 ...src/test/java/au/com/dius/resilience/test/unit/persistence/async/BackgroundDataOperationTest.java
  194. +157 −0 ...t/java/au/com/dius/resilience/test/unit/persistence/repository/impl/ParseIncidentAdapterTest.java
  195. +66 −0 ...ava/au/com/dius/resilience/test/unit/persistence/repository/impl/ParseIncidentRepositoryTest.java
  196. +173 −0 ...test/java/au/com/dius/resilience/test/unit/persistence/repository/impl/PreferenceAdapterTest.java
  197. +33 −0 ...ava/au/com/dius/resilience/test/unit/persistence/repository/impl/RepositoryCommandResultTest.java
  198. +72 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/service/SaveIncidentServiceTest.java
  199. +67 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/service/SendFeedbackServiceTest.java
  200. +88 −0 ...-app/src/test/java/au/com/dius/resilience/test/unit/ui/activity/AppendableListPreferenceTest.java
  201. +9 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/ui/activity/CreateIncidentTest.java
  202. +18 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/utils/MutableBoolean.java
  203. +36 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/utils/ResilienceTestRunner.java
  204. +56 −0 ...app/src/test/java/au/com/dius/resilience/test/unit/utils/SameDatabaseShadowSqlLiteOpenHelper.java
  205. +93 −0 resilience-app/src/test/java/au/com/dius/resilience/test/unit/utils/TestHelper.java
  206. +0 −1 resilience-app/submodules/robolectric
View
@@ -10,3 +10,4 @@ out/
tmp/
local.properties
target/
+resilience-local.properties
View
@@ -1,3 +1,6 @@
[submodule "submodules/robolectric"]
path = submodules/robolectric
url = git@github.com:DiUS/robolectric.git
+[submodule "resilience-app/submodules/robolectric"]
+ path = resilience-app/submodules/robolectric
+ url = https://github.com/pivotal/robolectric
View
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java" including="**/*.java"/>
+ <classpathentry kind="src" path="gen" including="**/*.java"/>
+ <classpathentry kind="output" path="target/classes"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="M2_REPO/com/google/android/android/4.0.1.2/android-4.0.1.2.jar" sourcepath="M2_REPO/com/google/android/android/4.0.1.2/android-4.0.1.2-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/Users/justin/.m2/repository/com/google/android/android/4.0.1.2/android-4.0.1.2-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/Users/justin/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.jar" sourcepath="M2_REPO/org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar" sourcepath="M2_REPO/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3.jar" sourcepath="M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/Users/justin/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/khronos/opengl-api/gl1.1-android-2.1_r1/opengl-api-gl1.1-android-2.1_r1.jar" sourcepath="M2_REPO/org/khronos/opengl-api/gl1.1-android-2.1_r1/opengl-api-gl1.1-android-2.1_r1-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/Users/justin/.m2/repository/org/khronos/opengl-api/gl1.1-android-2.1_r1/opengl-api-gl1.1-android-2.1_r1-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.jar" sourcepath="M2_REPO/xpp3/xpp3/1.1.4c/xpp3-1.1.4c-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/Users/justin/.m2/repository/xpp3/xpp3/1.1.4c/xpp3-1.1.4c-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/json/json/20080701/json-20080701.jar" sourcepath="M2_REPO/org/json/json/20080701/json-20080701-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/Users/justin/.m2/repository/org/json/json/20080701/json-20080701-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/com/google/android/maps/maps/15r2/maps-15r2.jar"/>
+</classpath>
View
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>mapviewballoons</name>
+ <comment>NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
+ <projects/>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,5 @@
+#Tue Dec 11 18:30:36 EST 2012
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.readystatesoftware.mapviewballoons"
+ android:versionCode="4"
+ android:versionName="1.5.1" >
+
+ <application>
+ <uses-library android:name="com.google.android.maps" />
+ </application>
+
+ <uses-sdk
+ android:minSdkVersion="4"
+ android:targetSdkVersion="8" />
+
+ <uses-permission android:name="android.permission.INTERNET" >
+ </uses-permission>
+
+</manifest>
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="mapviewballoons" default="help">
+
+ <!-- The local.properties file is created and updated by the 'android' tool.
+ It contains the path to the SDK. It should *NOT* be checked into
+ Version Control Systems. -->
+ <property file="local.properties" />
+
+ <!-- The ant.properties file can be created by you. It is only edited by the
+ 'android' tool to add properties to it.
+ This is the place to change some Ant specific build properties.
+ Here are some properties you may want to change/update:
+
+ source.dir
+ The name of the source directory. Default is 'src'.
+ out.dir
+ The name of the output directory. Default is 'bin'.
+
+ For other overridable properties, look at the beginning of the rules
+ files in the SDK, at tools/ant/build.xml
+
+ Properties related to the SDK location or the project target should
+ be updated using the 'android' tool with the 'update' action.
+
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems.
+
+ -->
+ <property file="ant.properties" />
+
+ <!-- if sdk.dir was not set from one of the property file, then
+ get it from the ANDROID_HOME env var.
+ This must be done before we load project.properties since
+ the proguard config can use sdk.dir -->
+ <property environment="env" />
+ <condition property="sdk.dir" value="${env.ANDROID_HOME}">
+ <isset property="env.ANDROID_HOME" />
+ </condition>
+
+ <!-- The project.properties file is created and updated by the 'android'
+ tool, as well as ADT.
+
+ This contains project specific properties such as project target, and library
+ dependencies. Lower level build properties are stored in ant.properties
+ (or in .classpath for Eclipse projects).
+
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems. -->
+ <loadproperties srcFile="project.properties" />
+ <path id="compile.classpath">
+ <pathelement path="${sdk.dir}/add-ons/addon_google_apis_google_inc_${default.sdk.version}/libs/maps.jar"/>
+ <pathelement path="${sdk.dir}/add-ons/addon-google_apis-google_inc_-${default.sdk.version}/libs/maps.jar"/>
+ <pathelement path="${sdk.dir}/add-ons/addon-google_apis-google-${default.sdk.version}/libs/maps.jar"/>
+ </path>
+
+ <!-- quick check on sdk.dir -->
+ <fail
+ message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
+ unless="sdk.dir"
+ />
+
+ <!--
+ Import per project custom build rules if present at the root of the project.
+ This is the place to put custom intermediary targets such as:
+ -pre-build
+ -pre-compile
+ -post-compile (This is typically used for code obfuscation.
+ Compiled code location: ${out.classes.absolute.dir}
+ If this is not done in place, override ${out.dex.input.absolute.dir})
+ -post-package
+ -post-build
+ -pre-clean
+ -->
+ <import file="custom_rules.xml" optional="true" />
+
+ <!-- Import the actual build file.
+
+ To customize existing targets, there are two options:
+ - Customize only one target:
+ - copy/paste the target into this file, *before* the
+ <import> task.
+ - customize it to your needs.
+ - Customize the whole content of build.xml
+ - copy/paste the content of the rules files (minus the top node)
+ into this file, replacing the <import> task.
+ - customize to your needs.
+
+ ***********************
+ ****** IMPORTANT ******
+ ***********************
+ In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
+ in order to avoid having your file be overridden by tools such as "android update project"
+ -->
+ <!-- version-tag: 1 -->
+ <import file="${sdk.dir}/tools/ant/build.xml" />
+
+</project>
Binary file not shown.
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4">
+ <component name="FacetManager">
+ <facet type="android" name="Android">
+ <configuration>
+ <option name="GEN_FOLDER_RELATIVE_PATH_APT" value="/gen" />
+ <option name="GEN_FOLDER_RELATIVE_PATH_AIDL" value="/gen" />
+ <option name="MANIFEST_FILE_RELATIVE_PATH" value="/AndroidManifest.xml" />
+ <option name="RES_FOLDER_RELATIVE_PATH" value="/res" />
+ <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/assets" />
+ <option name="LIBS_FOLDER_RELATIVE_PATH" value="/libs" />
+ <option name="USE_CUSTOM_APK_RESOURCE_FOLDER" value="false" />
+ <option name="CUSTOM_APK_RESOURCE_FOLDER" value="" />
+ <option name="USE_CUSTOM_COMPILER_MANIFEST" value="false" />
+ <option name="CUSTOM_COMPILER_MANIFEST" value="" />
+ <option name="APK_PATH" value="" />
+ <option name="LIBRARY_PROJECT" value="true" />
+ <option name="RUN_PROCESS_RESOURCES_MAVEN_TASK" value="true" />
+ <option name="GENERATE_UNSIGNED_APK" value="false" />
+ <option name="CUSTOM_DEBUG_KEYSTORE_PATH" value="" />
+ <option name="PACK_TEST_CODE" value="false" />
+ <option name="RUN_PROGUARD" value="false" />
+ <option name="PROGUARD_CFG_PATH" value="/proguard-project.txt" />
+ <resOverlayFolders>
+ <path>/res-overlay</path>
+ </resOverlayFolders>
+ <includeSystemProguardFile>true</includeSystemProguardFile>
+ <includeAssetsFromLibraries>false</includeAssetsFromLibraries>
+ <additionalNativeLibs />
+ </configuration>
+ </facet>
+ </component>
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
+ <exclude-output />
+ <content url="file://$MODULE_DIR$">
+ <sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
+ </content>
+ <orderEntry type="jdk" jdkName="Android 4.0 Platform" jdkType="Android SDK" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="file://$MODULE_DIR$/libs" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ <jarDirectory url="file://$MODULE_DIR$/libs" recursive="false" />
+ </library>
+ </orderEntry>
+ </component>
+</module>
+
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
@@ -0,0 +1,14 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+
+android.library=true
+# Indicates whether an apk should be generated for each density.
+split.density=false
+# Project target.
+target=android-14
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:state_pressed="true"
+ android:drawable="@drawable/balloon_overlay_focused" />
+ <item
+ android:state_pressed="false"
+ android:drawable="@drawable/balloon_overlay_unfocused" />
+</selector>
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/balloon_main_layout"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@drawable/balloon_overlay_bg_selector"
+ android:minWidth="200dip"
+ android:orientation="horizontal"
+ android:paddingBottom="25dip"
+ android:paddingLeft="10dip"
+ android:paddingRight="0dip"
+ android:paddingTop="0dip" >
+
+ <LinearLayout
+ android:id="@id/balloon_inner_layout"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="6dip"
+ android:layout_weight="1" >
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center_vertical"
+ android:minHeight="40dip"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/balloon_item_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="balloon_item_title"
+ android:textColor="@android:color/primary_text_light"
+ android:textSize="16dip" />
+
+ <TextView
+ android:id="@+id/balloon_item_snippet"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="balloon_item_snippet"
+ android:textColor="@android:color/secondary_text_light"
+ android:textSize="12dip" />
+ </LinearLayout>
+
+ <ImageView
+ android:id="@+id/balloon_disclosure"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:layout_gravity="center_vertical"
+ android:paddingTop="3dip"
+ android:src="@drawable/balloon_disclosure"
+ android:visibility="gone" />
+ </LinearLayout>
+
+ <ImageView
+ android:id="@id/balloon_close"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingBottom="10dip"
+ android:paddingLeft="10dip"
+ android:paddingRight="5dip"
+ android:paddingTop="5dip"
+
+ android:src="@drawable/balloon_overlay_close" />
+
+</LinearLayout>
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <item type="id" name="balloon_inner_layout" />
+ <item type="id" name="balloon_close" />
+</resources>
@@ -0,0 +1,7 @@
+package com.readystatesoftware.maps;
+
+import android.view.MotionEvent;
+
+public interface OnSingleTapListener {
+ public boolean onSingleTap(MotionEvent e);
+}
Oops, something went wrong.

0 comments on commit 20d271f

Please sign in to comment.