Compare commits

...

272 Commits

Author SHA1 Message Date
Jimmy Shih 0fad5840f3 Code cleanup: DeleteTest.java 2014-01-31 14:36:08 -08:00
Jimmy Shih 09102ab6db Code cleanup: SettingsTest.java 2014-01-31 14:12:33 -08:00
Jimmy Shih abb9b6e302 Code cleanup: PauseResumeTest 2014-01-31 12:35:41 -08:00
Jimmy Shih 58b36e01f0 Code cleanup: CreateTrackTest 2014-01-31 10:52:21 -08:00
Jimmy Shih 9a059add14 Code cleanup: MyLocationTest 2014-01-30 16:33:37 -08:00
Jimmy Shih 0e766261d1 Code cleanup: MenuItemsTest 2014-01-30 16:19:13 -08:00
Jimmy Shih 9655dcbff9 Code cleanup: ViewTest.java 2014-01-30 15:11:44 -08:00
Jimmy Shih 062d687cdb Cleanup ExportAllAndImportAllTest 2014-01-30 14:19:11 -08:00
Jimmy Shih 0e7d909646 Cleanup logging in end to end tests 2014-01-28 18:20:06 -08:00
Jimmy Shih 98ef2a8975 Code cleanup: GoogleUtils 2014-01-28 14:30:29 -08:00
Jimmy Shih bb5758f5bd Code cleanup: EndToEndTestRunner and RunConfiguration 2014-01-28 11:11:30 -08:00
Jimmy Shih e8c9661776 Fix unit tests 2014-01-28 09:59:07 -08:00
Jimmy Shih 381022fde0 Fix a null pointer in TrackDataHub 2014-01-24 15:28:41 -08:00
Jimmy Shih 0691975a4d Allow following a recorded track by pressing the my current location button 2014-01-24 14:02:09 -08:00
Jimmy Shih 409621a240 Bug fix, don't adjust zoom level when keeping screen visible 2014-01-24 11:14:58 -08:00
Jimmy Shih d42b6e5361 Allow horizontal scroll in chart view 2014-01-23 10:38:04 -08:00
Jimmy Shih 07428663c5 Update manifest for My Tracks 2.0.6 rc5 2014-01-22 14:10:30 -08:00
Jimmy Shih 8fefdd580b Update translated strings 2014-01-22 13:17:40 -08:00
Jimmy Shih 18cd3d49fa Upgrade to robotium 5.0.1 2014-01-22 11:19:09 -08:00
Jimmy Shih 974d7434d7 Bug fix, display csv numbers is US locale 2014-01-17 14:35:19 -08:00
Jimmy Shih b5d40baeba Code cleanup: improve ChooseActivityDialog using ViewHolder pattern 2014-01-17 13:39:22 -08:00
Jimmy Shih 28801a1332 bug fix, handle the case when gx:value in kml is empty 2014-01-17 13:06:06 -08:00
Jimmy Shih 0ccd70a7b9 Bug fix, set hasPhoto state immediately to prevent race condition that the TrackDetailActivity is recreated 2014-01-16 14:44:15 -08:00
Jimmy Shih 9f45405d89 Use a dialog fragment to show map layer 2014-01-16 14:03:12 -08:00
Jimmy Shih a4cf0518c4 Bug fix, hide feedback button for gingerbread phones 2014-01-16 09:54:05 -08:00
Jimmy Shih aec0721757 Improve delete all dialog message 2014-01-15 14:49:04 -08:00
Jimmy Shih 150ce66a46 Handle screen rotation in help activity 2014-01-15 13:14:24 -08:00
Jimmy Shih 770e00968b Bug fix, use marginBottom for image view 2014-01-14 16:15:20 -08:00
Jimmy Shih ec34e4cfb3 Improve empty track list view 2014-01-14 15:11:25 -08:00
Jimmy Shih 8a1574be72 Update unit tests for FixedSpeedTrackPathDescriptor 2014-01-14 14:53:51 -08:00
Jimmy Shih 5f436abbda Fix bug: in dialog, get all the views first inside onCreate 2014-01-14 12:57:01 -08:00
Jimmy Shih 2f64785a63 Codeclean: accessibility content description 2014-01-13 14:25:33 -08:00
Jimmy Shih f43d2ab766 Update request permission title 2014-01-13 13:21:37 -08:00
Jimmy Shih 9f6d412c98 Fix bug with slow speed preference and unit conversion 2014-01-13 13:13:25 -08:00
Jimmy Shih 3a1e1bc7f8 In default track name, add an option for Date + Location 2014-01-13 10:53:40 -08:00
Jimmy Shih 0743835893 Code cleanup of EulaUtils 2014-01-10 12:45:26 -08:00
Jimmy Shih 6ab9f0716b Fix startup sequence to set the preferred unit if not set 2014-01-10 12:37:34 -08:00
Jimmy Shih e62e821fc3 Improve track list empty view 2014-01-10 11:15:55 -08:00
Jimmy Shih a5c01977bd update launcher icon 2014-01-09 14:36:42 -08:00
Jimmy Shih 73c96a49a4 Code cleanup, remove period from single sentence 2014-01-08 17:47:05 -08:00
Jimmy Shih 68f84c5d39 Add menu items to Help and Feedback page 2014-01-08 15:46:41 -08:00
Jimmy Shih 33886cc2ad Merge help and feedback into one menu item 2014-01-08 14:36:34 -08:00
Jimmy Shih 7f124aa76b Code cleanup for enable and disable google sync 2014-01-08 14:05:31 -08:00
Jimmy Shih 071e33719e Cleanup code to enable sync to Google Drive 2014-01-08 13:15:58 -08:00
Jimmy Shih 68685828ca Prompt user to sync to drive after first recording 2014-01-08 11:32:04 -08:00
Jimmy Shih 5efd745562 Code cleanup: update no account message 2014-01-07 17:28:19 -08:00
Jimmy Shih 29cffa96e6 Update sync to Google Drive setting 2014-01-07 17:02:02 -08:00
Jimmy Shih 76e44794ff Code cleanup, remove fragmentActivity as instance variable inside fragments 2013-12-26 17:17:10 -08:00
Jimmy Shih 5bc7f2f973 Inline account chooser in export dialog 2013-12-26 16:56:35 -08:00
Jimmy Shih e1f6a57df2 inline choose account in share trak dialog 2013-12-26 14:25:43 -08:00
Jimmy Shih c8629cc92a Code cleanup: cleanup AbtractSendToGoogleActivity 2013-12-19 12:44:20 -08:00
Jimmy Shih 3b5b2461bb Hide menu items when track list is empty 2013-12-18 16:10:25 -08:00
Jimmy Shih a49a74fc6b Update contextual action bar title 2013-12-18 15:30:54 -08:00
Jimmy Shih da5df06298 Remove backup and restore, move reset to advanced setting 2013-12-17 18:06:03 -08:00
Jimmy Shih 33fb7cee81 Use finish for navigation up from marker detail page 2013-12-17 17:34:20 -08:00
Jimmy Shih 8b546459bf Update text for allow sharing setting 2013-12-17 17:29:50 -08:00
Jimmy Shih 1dbebf0529 UX improvement, not showing total time when not recording 2013-12-17 17:20:12 -08:00
Jimmy Shih e31550c524 Update marker list and marker detail title 2013-12-13 15:19:33 -08:00
Jimmy Shih 18ac53b6ce update list_activated_holo.9.png and increase margin on marker detail view 2013-12-13 14:35:53 -08:00
Jimmy Shih 39387fa1c6 Fix bug on acquiring wake lock 2013-12-13 11:08:05 -08:00
Jimmy Shih 08cb38554f Bug fix, fix importing markers 2013-12-13 10:52:46 -08:00
Jimmy Shih 4bf5b41cfa Bug fix: only add folder tag when playing multiple tracks 2013-12-11 15:09:08 -08:00
Jimmy Shih 20bd0287dc Improve delete marker confirmation tite and message 2013-12-11 10:30:33 -08:00
Jimmy Shih 7cbda8a9d5 Bug fix, fix layout on 4x1 widget 2013-12-09 15:51:20 -08:00
Jimmy Shih e826ef1754 Use CheckPermissionAsyncTask in GoogleSettingsActivity 2013-12-09 15:10:36 -08:00
Jimmy Shih 61cf316fb5 Rename refresh to sync now 2013-12-09 14:42:10 -08:00
Jimmy Shih a28c39bea9 Use asynctask to check for permission 2013-12-09 14:22:17 -08:00
Jimmy Shih caa1680dc6 Explicitly grant and revoke read permission when playing a track 2013-12-06 11:11:41 -08:00
Jimmy Shih 61bc8f5bbe Bug fix, do not cache folder id across sync requests to handle the case of switching account 2013-12-05 17:33:48 -08:00
Jimmy Shih 07edfde08d Bug fix: set the final track name when the track ends 2013-12-05 16:25:05 -08:00
Jimmy Shih 3d0846bec6 Bug fix: fix index used when play multiple tracks 2013-12-05 15:59:36 -08:00
Jimmy Shih 5a40b83065 Set photo size first in the maker list 2013-12-05 14:57:39 -08:00
Jimmy Shih d52715c513 When in imperial unit, use 150 lb as the default 2013-12-05 13:05:53 -08:00
Jimmy Shih 9085b777a7 Remove X clear button next to text widget for entering weight 2013-12-05 12:44:08 -08:00
Jimmy Shih 68afba0c31 Add latitude and longitude in marker detail page 2013-12-05 12:37:07 -08:00
Jimmy Shih 384efcbfdc align list icon to top when there is only one line 2013-12-05 11:06:16 -08:00
Jimmy Shih 0a83728b82 Add text shadow when displaying photo in marker detail page 2013-12-05 10:45:53 -08:00
Jimmy Shih 7fe603c5fe Add text shadow when displaying photo 2013-12-04 15:55:54 -08:00
Jimmy Shih f0cfc65540 Set photo bitmap to transparent to avoid showing the old bitmap 2013-12-04 11:51:47 -08:00
Jimmy Shih c2e4381a50 Use relative time display only on track list 2013-12-04 10:16:57 -08:00
Jimmy Shih 65bfa15553 Improve marker layout spacing 2013-12-03 17:34:53 -08:00
Jimmy Shih 1fbc38d38d Update gallery during import cleanup 2013-12-03 11:00:20 -08:00
Jimmy Shih df8ed8e678 My Tracks 2.0.6 rc1 2013-12-02 18:12:13 -08:00
Jimmy Shih 9c4ccb2da9 Update gallery when photo markers are deleted 2013-12-02 15:50:08 -08:00
Jimmy Shih 4043bd8696 Update alert dialog title divider color 2013-12-02 13:09:24 -08:00
Jimmy Shih 93ddc27566 During import, add photo markers to gallery 2013-12-02 10:59:48 -08:00
Jimmy Shih d0a9885a50 Add custom error message when trying to make a track public in Google Drive 2013-11-27 14:23:38 -08:00
Jimmy Shih 48ecf26a42 No longer waiting for buffer to be fill before setting grade, elevation, and max speed values 2013-11-27 14:06:15 -08:00
Jimmy Shih 6b8ccc8a83 Fix unit tests 2013-11-27 13:56:23 -08:00
Jimmy Shih 8f9b07dcb4 Bug fix, use Math.round to convert double to long 2013-11-27 12:50:26 -08:00
Jimmy Shih f40484f16c Rename to play multiple 2013-11-27 11:29:07 -08:00
Jimmy Shih 2c0515c597 Add back option to export to google drive 2013-11-27 10:45:07 -08:00
Jimmy Shih e813995b34 Add new location setting policy 2013-11-26 15:45:33 -08:00
Jimmy Shih 8bb8a1c266 Code cleanup, move google location settings logic to GoogleLocationUtils 2013-11-26 13:01:12 -08:00
Jimmy Shih abcf7cddff Code refactor of GoogleLocationUtils 2013-11-26 12:38:44 -08:00
Jimmy Shih 2ae1d7fe29 Set dialog title divider for preference dialogs 2013-11-25 15:52:12 -08:00
Jimmy Shih 8506b340e8 Move setting preferences under the settings package 2013-11-25 15:26:19 -08:00
Jimmy Shih ab1226fa31 Set dialog title divider for dialogfragment 2013-11-25 15:09:12 -08:00
Jimmy Shih 0947ae2291 bug fix: fix vertical layout in choose_activity_type_.xml 2013-11-25 13:11:27 -08:00
Jimmy Shih c91bc2086c Use application theme for progress dialog 2013-11-25 10:42:47 -08:00
Jimmy Shih be2d66d4ab Revert menu icon color for froyo phones 2013-11-25 10:11:53 -08:00
Jimmy Shih 47c189409e Add menu option for merge and play 2013-11-24 12:56:42 -08:00
Jimmy Shih 1e4451ce41 Prepend MyTracks to photo folder 2013-11-22 16:09:57 -08:00
Jimmy Shih bb5d4069cd fix layout issue for gingerbread 2013-11-22 15:35:02 -08:00
Jimmy Shih dfe7606dd5 Add scrollview around alert dialog content 2013-11-22 14:02:47 -08:00
Jimmy Shih 9442416844 Remove choose activity type dialog beore starting a new one. Remove clear button next to text edit for api level < 11 2013-11-22 11:43:49 -08:00
Jimmy Shih 74713239fb list item, select entire item. not show markers in action bar. Message when photo marker is canceled 2013-11-22 10:37:20 -08:00
Jimmy Shih 76c06f68fb use custom spinner color 2013-11-21 14:42:08 -08:00
Jimmy Shih 03145839f3 Add custom color for radio button 2013-11-21 14:14:00 -08:00
Jimmy Shih b90d3193ab Improve alert dialog theme 2013-11-21 13:37:05 -08:00
Jimmy Shih 41f5206c63 Improve the default activity type preference 2013-11-20 17:49:15 -08:00
Jimmy Shih 0d65e5cafc Code refactor to reuse ChooseActivityTypeDialog in PreferenecActivity 2013-11-20 11:33:58 -08:00
Jimmy Shih 33fb24c5e5 Bug fix, only update calorie in statistics markers 2013-11-20 10:58:44 -08:00
Jimmy Shih 79f974ee2b Bug fix, at the end of a track, only update the time if not paused 2013-11-20 10:50:42 -08:00
Jimmy Shih 0aa3903a52 merge branch 2013-11-20 10:44:32 -08:00
Jimmy Shih 63c1330f50 merge heads 2013-11-20 10:36:47 -08:00
Jimmy Shih 5ecb41adc2 Update calorie when activity recognition api sets the track category 2013-11-19 14:19:11 -08:00
Jimmy Shih 2571247829 Update stats waypoint calorie when changing activity type 2013-11-19 13:24:40 -08:00
Jimmy Shih ca290bf664 Enable calorie in AggregatedStats and MarkerDetail page 2013-11-18 18:05:13 -08:00
Jimmy Shih f5d8ca8dd2 During import, make sure track calorie and waypoint calorie are set correctly 2013-11-18 16:16:15 -08:00
Jimmy Shih f5f0c56043 Code cleanup: use getTrackPointLocationIterator instead of getTrackPointCursor 2013-11-18 15:22:47 -08:00
Jimmy Shih 0b27765c30 Update stats marker calorie in TrackRecordingService 2013-11-18 14:36:53 -08:00
Jimmy Shih 2f8eda0810 Add a clear button at the end of the weight field 2013-11-14 17:16:42 -08:00
Jimmy Shih d9c2f82656 Fix photo url during import 2013-11-14 16:29:54 -08:00
Jimmy Shih 857b53c4ca remove weight from stats settings 2013-11-14 15:55:44 -08:00
Jimmy Shih 982828d0af Apply text gradient only over text, fade out after clicking on image 2013-11-14 15:40:25 -08:00
Jimmy Shih 6b050d6236 Align stats's page grade bottom alignment 2013-11-14 15:11:33 -08:00
Jimmy Shih 7585c80906 Improve layout for entering weight 2013-11-14 14:31:56 -08:00
Jimmy Shih 2bd5734386 Adjust fade out duration and fix degree font size 2013-11-14 14:01:26 -08:00
Jimmy Shih aef035923a Update calorie when weight changes 2013-11-13 17:34:09 -08:00
Jimmy Shih 8e361610bc add option to set weight in choose activity type dialog 2013-11-13 17:13:16 -08:00
Jimmy Shih 4a5f2406e7 Code cleanup for unit conversion 2013-11-13 13:41:44 -08:00
Jimmy Shih 801b597fa0 Update formulas in CalorieUtils 2013-11-13 12:56:05 -08:00
Jimmy Shih fb0dac20c1 Cleanup calorie settings 2013-11-12 17:50:23 -08:00
Jimmy Shih e3d7856e1c Add activity icon next to calorie in stats page 2013-11-12 15:43:22 -08:00
Jimmy Shih ea626847d6 add landscape view for stats page 2013-11-11 15:38:13 -08:00
Jimmy Shih 0dd563f16c Code cleanup: remove android:orientation=horizontal 2013-11-07 17:29:58 -08:00
Jimmy Shih a701d1ecd8 add generic track activity icon 2013-11-07 17:17:08 -08:00
Jimmy Shih fd63a7f5f9 Improve decimal number formatting 2013-11-07 17:09:44 -08:00
Jimmy Shih 631d978ef5 Add paddingTop to stats unit to support superscript 2013-11-07 16:45:27 -08:00
Jimmy Shih f4591fa22c Improve stats layout 2013-11-07 16:13:26 -08:00
Jimmy Shih 45909e70b6 Update calorie when the activity type is set at the end of the track by the activity recognition api 2013-11-05 13:48:43 -08:00
Jimmy Shih 17428e1e94 Code cleanup: cleanup CalorieUtils.java 2013-11-04 16:51:59 -08:00
Jimmy Shih d96c705953 Add menu option to view photo in gallery 2013-11-04 14:20:23 -08:00
Jimmy Shih 5867093895 Add fade out animation in marker detail view 2013-11-04 13:39:48 -08:00
Jimmy Shih 48ad505e55 Improve marker detail layout 2013-11-04 12:30:29 -08:00
Jimmy Shih 4b1eea2ed5 Fix StatsUtils to work with views from fragment 2013-11-01 11:28:06 -07:00
Jimmy Shih 5902af967c merge heads 2013-11-01 10:14:47 -07:00
Jimmy Shih 33960e4264 Improve marker detail layout 2013-11-01 10:13:46 -07:00
youtaol 2be9f58545 Change code style. 2013-10-31 11:11:35 +08:00
Jimmy Shih fe50678565 improvements to list item layout 2013-10-30 17:56:03 -07:00
Jimmy Shih 7354b5a438 Improve marker list view layout 2013-10-30 14:29:40 -07:00
Jimmy Shih 261327ed4a merge heads 2013-10-30 10:54:41 -07:00
Jimmy Shih 961d8be8b9 Improve marker count layout in list view 2013-10-30 10:53:37 -07:00
youtaol 4907dc26a0 Change code style. 2013-10-30 17:42:24 +08:00
youtaol 7cc1f878b4 Merge heads 2013-10-30 11:16:07 +08:00
youtaol 7823ca4eec Fix an issue when run SyncTest. 2013-10-30 11:13:50 +08:00
Jimmy Shih 64c03a40a7 Add marker count on the track list page 2013-10-29 15:35:59 -07:00
Jimmy Shih 2f9b8775e8 merge heads 2013-10-29 11:30:44 -07:00
Jimmy Shih 97e567e505 Two bug fixes. Fix rotation and cropping in BitmapLoader. Fix empty filename during import. 2013-10-29 11:29:47 -07:00
youtaol 008b0a435d Merge heads 2013-10-28 20:36:36 +08:00
youtaol 0cea2faa92 Fix two issues of e2e test case. 2013-10-28 20:13:36 +08:00
youtaol c43e9047bc Remove the parameter of updateCalorie method of TrackRecordingService. Re-calculate the calorie of track and last marker in TrackRecordingService. 2013-10-25 14:41:21 +08:00
youtaol c68ec5ed9a After user edit the track. Update recorded track statistics immediately and update recording track statistics in track recording service.
Change some code style.
2013-10-23 17:14:45 +08:00
Jimmy Shih f1ce31cfeb Add a Photo Size option in Advanced settings 2013-10-22 17:32:38 -07:00
Jimmy Shih 44ea7dbfab In kmz file, limit photo to 1M 2013-10-22 12:55:14 -07:00
Jimmy Shih 80f5a6252e Handle the case the photo file is deleted when loading a bitmap 2013-10-21 14:53:08 -07:00
Jimmy Shih dcd4b8026f Cleanup eclipse warning 2013-10-21 12:41:39 -07:00
Jimmy Shih b7604a11e4 Fix eclipse warnings 2013-10-21 12:32:04 -07:00
Jimmy Shih 2e4f4cc4c2 Improve marker list layout with photo markers 2013-10-21 11:28:16 -07:00
youtaol d64b1c74f4 Update the calorie of both entire track and current segment. Change some code style. 2013-10-21 17:41:16 +08:00
Jimmy Shih 0e8de4c91a Bug fix: delete a partially inserted track if unable to import 2013-10-18 10:59:41 -07:00
Jimmy Shih b0dcd7be85 merge heads 2013-10-18 10:43:25 -07:00
Jimmy Shih cff11657f0 Bug fix: Only update drive file if it is in the MyTracks directory 2013-10-18 10:42:20 -07:00
youtaol 7edf71c95f Merge heads 2013-10-18 15:59:15 +08:00
youtaol ed4ec20ad7 Fix test case issue of ExportAndImport test case. 2013-10-18 15:58:52 +08:00
Jimmy Shih 32834f08c5 Delete photo when marker or track is deleted 2013-10-17 16:32:06 -07:00
youtaol a189f31f38 Merge heads 2013-10-17 10:10:35 +08:00
youtaol 18d98d5432 Fix an nullpointexception issue when run ChartFragmentTest. 2013-10-16 17:41:31 +08:00
youtaol 0b3f5ddca7 Fix an issue of test case testCalculateCalorieCycling. 2013-10-16 17:18:20 +08:00
youtaol 6231cf8663 Fix unit test issue of GpxFileTrackImporterTest and KMLFileTrackImporterTest after adding calorie code. 2013-10-16 16:53:35 +08:00
Jimmy Shih 24113a4d7f Code refactor: move managing list of deleted tracks to DeleteAsyncTask 2013-10-15 11:08:06 -07:00
Jimmy Shih cb3785de5c Performance optimization, during sync, getFolderId only when needed 2013-10-14 16:53:37 -07:00
Jimmy Shih 75c58c556a Reduce number of Google Drive api calls by using a list to keep track of the edits 2013-10-14 14:51:26 -07:00
youtaol b7f8da5ec2 Compute the grade while recalculate the calorie. 2013-10-12 15:04:14 +08:00
Jimmy Shih 6676f6b760 Optimization, reduce drive api calls when files are moved to a new directory in Google Drive 2013-10-11 10:21:15 -07:00
Jimmy Shih 6549ebb361 Use modified time to detect sync changes. Can not use md5 checksum to detect changes in zip file. 2013-10-10 13:48:06 -07:00
Jimmy Shih f893d4601b merge heads 2013-10-10 11:08:42 -07:00
Jimmy Shih 134c54ca03 Handles when a merge fails and the track is deleted 2013-10-10 11:07:09 -07:00
youtaol 651034e2a8 Update the TripStatisticsUpdater after change the activity type of current recording calorie. Using the activity type but calorie value to determine whether show activity set button or not. 2013-10-10 19:19:02 +08:00
youtaol e228918cca Fix an issue after merge head. 2013-10-10 14:01:37 +08:00
youtaol ddecd50ef6 Merge heads 2013-10-10 13:50:09 +08:00
youtaol 8e9be4fcf0 Change code style about calorie. 2013-10-10 11:16:58 +08:00
youtaol 800fabd5a0 Add test case about calculating cycling calorie. 2013-10-10 11:16:43 +08:00
Jimmy Shih e94b7768dc When inserting a new kml/kmz file in Google Drive, make the the file title and the track name are the same 2013-10-09 15:21:28 -07:00
Jimmy Shih 2b633c091c Code cleanup: add getExtension and getName in FileUtils.java 2013-10-09 14:07:38 -07:00
Jimmy Shih 120c965e32 Code cleanup: specify directories inside the cache directory at FileUtils.java 2013-10-09 13:41:39 -07:00
Jimmy Shih 5ee710b7c5 Support renaming files on Google Drive when sync is enabled 2013-10-09 12:53:35 -07:00
youtaol 721bc83b9f Fix an issue that the weight value unit is wrong when show the weight edit dialog after changing unit. 2013-10-08 16:35:12 +08:00
Jimmy Shih 8e907d9144 Add Google Drive sync for kmz files 2013-10-07 18:19:08 -07:00
Jimmy Shih 3827faa0e5 Code cleanup: FileUtils.java 2013-10-04 15:37:10 -07:00
Jimmy Shih 4161f8ff56 Codename: rename methods to FileUtils.getPath and FileUtils.getPathDisplayName 2013-10-04 15:30:53 -07:00
Jimmy Shih 5f00430795 Code cleanup: cleanup callers of FileUtils.buildUniqueFileName 2013-10-04 15:22:21 -07:00
Jimmy Shih 832397595d Code cleanup: add try finally block for callers of SyncUtils.getFile 2013-10-04 15:04:23 -07:00
Jimmy Shih 6df5e2916f Codecleanup: move TrackDataHub constants to its file 2013-10-04 11:12:40 -07:00
Jimmy Shih 39d26febc1 Code cleanup: remove TAG in Constants.java 2013-10-04 11:01:23 -07:00
Jimmy Shih 9c938b1260 Store photos in /MyTracks/pictures directory 2013-10-03 18:04:17 -07:00
Jimmy Shih b182c1cb80 When play track, add a containing folder to contain all the merged tracks 2013-10-02 15:22:00 -07:00
Jimmy Shih 7594f6b516 Delete RemoveTempFileService 2013-10-01 14:05:01 -07:00
Jimmy Shih c9f1422c42 Remove confirm play in earth dialog 2013-10-01 13:54:04 -07:00
Jimmy Shih ea943548ec Use a content provider url to play track in earth 2013-10-01 13:24:57 -07:00
Jimmy Shih 7078bad2ed merge heads 2013-10-01 11:29:34 -07:00
Jimmy Shih f61e65336d update eclipse configuration 2013-10-01 11:28:29 -07:00
youtaol 1107543463 Make the default calorie to invalid. Fix an error while calculating the cycling calorie. 2013-09-10 16:16:25 +08:00
youtaol 02587dc27e Add an activity setup button in stat page when the activity type is not support to calculate calorie. 2013-09-10 11:01:18 +08:00
youtaol 282c48f530 Re-calculate the calorie while user change the activity type of track. Show standard "value_unknown" (-) when the activity type is not supported. 2013-09-06 14:54:02 +08:00
Jimmy Shih 0e687d9e1b Increase thread priority when import and export 2013-09-05 14:19:27 -07:00
Jimmy Shih fefbc3c4ab Codecleanup, rename package from export to exporter 2013-09-05 14:09:28 -07:00
Jimmy Shih d9bb4fa024 Codecleanup: move importers to its own package 2013-09-05 13:55:30 -07:00
Jimmy Shih 9ced32f2df Use same thread to export track 2013-09-05 13:34:11 -07:00
Jimmy Shih 429ebdbf3a Handles interrupt and error cleanup during import 2013-09-05 13:02:03 -07:00
youtaol 7233137e93 Use the activity type of current track to calculate calorie. 2013-09-05 14:33:37 +08:00
Jimmy Shih e0375050d2 Codecleanup: for importer, make sure inputstreams are closed properly 2013-09-04 16:26:27 -07:00
Jimmy Shih 396845a694 merge heads 2013-09-04 13:45:40 -07:00
Jimmy Shih e4f6be4938 Import kmz or kml tracks 2013-09-04 13:44:39 -07:00
youtaol 88ce01dc46 Merge heads 2013-09-04 10:11:32 +08:00
Jimmy Shih d11561f797 Code cleanup: move export classes to its own package 2013-09-03 15:40:03 -07:00
Jimmy Shih 298d0ae75b Code cleanup: move closing a file output stream at the same level as opening it 2013-09-03 15:24:03 -07:00
Jimmy Shih 791e3a3492 Improve cancelling async task when exporting tracks 2013-09-03 14:43:33 -07:00
Jimmy Shih aff5654bde Code cleanup: remove unused interface 2013-09-03 13:39:41 -07:00
Jimmy Shih 71f03996f5 Export track in kmz or kml 2013-09-03 12:56:44 -07:00
youtaol ad03336916 Add weoght parameter in TripStatisticsUpdater.addLocation() method. 2013-09-02 19:31:53 +08:00
Jimmy Shih b8bd8d62ce Code cleanup: Add TrackExporter interface 2013-08-28 15:25:55 -07:00
Jimmy Shih ee7376919e code cleanup: rename Importer classes 2013-08-28 12:17:17 -07:00
youtaol c42abaac6b Use dependency property to enable/disable weight preference. Change code style. 2013-08-28 10:43:46 +08:00
Jimmy Shih 0955e9f089 Rename TrackFormatWriter to TrackWriter 2013-08-27 18:09:34 -07:00
Jimmy Shih efddcc1dcf Rename TrackWriter to TrackExporter 2013-08-27 17:41:45 -07:00
youtaol 10a3e18e7a Make the weight dialog always display after enable calorie display. Change code style. 2013-08-27 17:06:28 +08:00
Jimmy Shih 415b0afe38 Add a fix when UserRecoverableAuthException.getIntent throws a null pointer exception 2013-08-26 11:20:40 -07:00
youtaol 57ca65e3b6 Change code style about calorie. 2013-08-26 19:23:57 +08:00
Jimmy Shih 6ce0db575f Fix null pointer exception with dataSourceManager in TrackDataHub 2013-08-23 12:51:53 -07:00
Jimmy Shih 635006efae In KmlImporter, check that gx:multitrack is available before gx:track 2013-08-23 11:36:43 -07:00
Jimmy Shih a2032af55a check if getActivity is null in ChartFragment 2013-08-23 10:25:42 -07:00
youtaol 16ff92230a Give an weight input dialog when the weight value is not set yet. Make the weight value/display can be changed by unit setting. 2013-08-23 12:30:24 +08:00
Jimmy Shih 511dca70da merge heads 2013-08-22 15:29:53 -07:00
Jimmy Shih c9a7a167ea Use an async task to load bitmap 2013-08-22 15:28:16 -07:00
youtaol 2468062eff Add show calorie and user weight preference in Stats settings page. 2013-08-22 17:05:10 +08:00
youtaol b6b54923b2 Merge heads 2013-08-22 10:14:45 +08:00
youtaol 83b1fb67bf Make constant to calculate calorie of cycling to fields. Change coe style. 2013-08-22 10:03:33 +08:00
Jimmy Shih 8f7bc30b10 Update Back and reset settings, remove are you sure on the dialog title 2013-08-21 11:32:12 -07:00
youtaol b9fd09d043 Change code style about calorie calculation. 2013-08-21 10:23:36 +08:00
Jimmy Shih b76d7fbb9c Remove footer in share track dialog 2013-08-20 15:25:30 -07:00
Jimmy Shih c7ba2bc5a1 Use list preference for chart x axis settings 2013-08-20 15:19:33 -07:00
Jimmy Shih 594f156a1f Use a list preference for the preferred rate setting 2013-08-20 14:43:25 -07:00
Jimmy Shih 7a8a95853e Use fitcenter to scale images 2013-08-20 11:32:15 -07:00
youtaol d16949c139 Change code style about code of calorie calculation. 2013-08-20 11:06:37 +08:00
Jimmy Shih f29cf16e13 Adjust UI layout for photos 2013-08-19 17:48:00 -07:00
Jimmy Shih 5f16df912a merge heads 2013-08-19 15:55:45 -07:00
Jimmy Shih ec3f0ddab3 Add play in earth with photo overlays 2013-08-19 15:54:32 -07:00
youtaol cbd6d8158a Change code style. 2013-08-19 11:30:56 +08:00
youtaol 4cf647b02c Add raw calories feature. Add calories column in Track table. Add calories field and raw logic to calculate calories in TripStatistics. Display a raw calories text in Stats Fragment. 2013-08-15 20:19:36 +08:00
youtaol 75ac35bf53 Add unit test about CalorieUtils.java. And change the visiability of some methods to make them testable. 2013-08-15 10:16:27 +08:00
youtaol d64b6a4d93 Merge heads 2013-08-15 09:46:14 +08:00
youtaol 4d8c44782e Change code style. 2013-08-15 09:45:26 +08:00
Jimmy Shih 24a343661d Add page viewer for marker detail page 2013-08-14 13:06:39 -07:00
youtaol 863f1373e4 Rename CaloricExpenditureComputation.java to CalorieUtils.java. Change code style. 2013-08-13 15:38:03 +08:00
Jimmy Shih aed601fcda merge heads 2013-08-12 14:45:00 -07:00
Jimmy Shih 79a38b2763 Added tag v2.0.5 for changeset 2a2a4e2c216a 2013-08-09 10:07:15 -07:00
Jimmy Shih 8f35da9576 display photos in marker list 2013-08-07 18:38:00 -07:00
youtaol 1d5d91c2bf Add utils to calculate caloric expenditure. 2013-08-07 16:09:30 +08:00
Jimmy Shih ba859b64e3 Fix two bugs.
- reload waypoint in MarkerDetailActivity onResume
- In list item, if time/distance field is not available, use INVISIBLE rather than GONE.
2013-08-06 13:55:16 -07:00
Jimmy Shih 517b792e43 Add feature to insert a photo marker 2013-08-06 12:55:02 -07:00
444 changed files with 12262 additions and 10103 deletions
+1 -1
View File
@@ -7,6 +7,6 @@
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.google.gdt.eclipse.managedapis.MANAGED_API_CONTAINER/fusiontables-v1r16lv1.12.0-beta"/>
<classpathentry kind="con" path="com.google.gdt.eclipse.managedapis.MANAGED_API_CONTAINER/gdata-spreadsheet-2.1"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
@@ -1,4 +1,6 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
@@ -64,6 +66,7 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disa
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field=1585
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field.count_dependent=1585|-1|1585
+14 -14
View File
@@ -16,8 +16,8 @@ limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="auto"
android:versionCode="70"
android:versionName="2.0.5"
android:versionCode="74"
android:versionName="2.0.6"
package="com.google.android.maps.mytracks" >
<!-- Permission to initialize services -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
@@ -92,7 +92,7 @@ limitations under the License.
<uses-permission android:name="com.google.android.maps.mytracks.permission.MAPS_RECEIVE" />
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
android:targetSdkVersion="19" />
<!-- Required features -->
<uses-feature
android:glEsVersion="0x00020000"
@@ -107,6 +107,9 @@ limitations under the License.
<uses-feature
android:name="android.hardware.bluetooth"
android:required="false" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.faketouch"
android:required="false" />
@@ -140,7 +143,7 @@ limitations under the License.
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher_my_tracks"
android:label="@string/my_tracks_app_name"
android:theme="@style/MyTracks" >
android:theme="@style/ThemeMyTracks" >
<!-- For data backup -->
<meta-data
android:name="com.google.android.backup.api_key"
@@ -157,7 +160,7 @@ limitations under the License.
<activity
android:label="@string/menu_help"
android:name="com.google.android.apps.mytracks.HelpActivity" />
<activity android:name="com.google.android.apps.mytracks.io.file.ImportActivity" >
<activity android:name="com.google.android.apps.mytracks.io.file.importer.ImportActivity" >
<intent-filter>
<action android:name="android.intent.action.ATTACH_DATA" />
<action android:name="android.intent.action.VIEW" />
@@ -172,7 +175,9 @@ limitations under the License.
</activity>
<activity android:name="com.google.android.apps.mytracks.MarkerEditActivity" />
<activity android:name="com.google.android.apps.mytracks.MarkerDetailActivity" />
<activity android:name="com.google.android.apps.mytracks.MarkerListActivity" >
<activity
android:label="@string/menu_markers"
android:name="com.google.android.apps.mytracks.MarkerListActivity" >
<meta-data
android:name="android.app.default_searchable"
android:value="com.google.android.apps.mytracks.SearchListActivity" />
@@ -207,23 +212,18 @@ limitations under the License.
android:name="android.app.default_searchable"
android:value="com.google.android.apps.mytracks.SearchListActivity" />
</activity>
<activity android:name="com.google.android.apps.mytracks.io.backup.BackupActivity" />
<activity android:name="com.google.android.apps.mytracks.io.backup.RestoreActivity" />
<activity android:name="com.google.android.apps.mytracks.io.backup.RestoreChooserActivity" />
<activity android:name="com.google.android.apps.mytracks.io.drive.SendDriveActivity" />
<activity android:name="com.google.android.apps.mytracks.io.file.SaveActivity" />
<activity android:name="com.google.android.apps.mytracks.io.file.exporter.SaveActivity" />
<activity android:name="com.google.android.apps.mytracks.io.fusiontables.SendFusionTablesActivity" />
<activity android:name="com.google.android.apps.mytracks.io.maps.SendMapsActivity" />
<activity android:name="com.google.android.apps.mytracks.io.sendtogoogle.UploadResultActivity" />
<activity android:name="com.google.android.apps.mytracks.io.spreadsheets.SendSpreadsheetsActivity" />
<activity android:name="com.google.android.apps.mytracks.settings.BackupResetSettingsActivity" />
<activity android:name="com.google.android.apps.mytracks.settings.AdvancedSettingsActivity" />
<activity android:name="com.google.android.apps.mytracks.settings.ChartSettingsActivity" />
<activity android:name="com.google.android.apps.mytracks.settings.GoogleSettingsActivity" />
<activity android:name="com.google.android.apps.mytracks.settings.MapSettingsActivity" />
<activity android:name="com.google.android.apps.mytracks.settings.RecordingSettingsActivity" />
<activity android:name="com.google.android.apps.mytracks.settings.SensorSettingsActivity" />
<activity android:name="com.google.android.apps.mytracks.settings.SettingsActivity" />
<activity android:name="com.google.android.apps.mytracks.settings.SharingSettingsActivity" />
<activity android:name="com.google.android.apps.mytracks.settings.StatsSettingsActivity" />
<activity
android:label="@string/track_widget_config_title"
@@ -248,7 +248,6 @@ limitations under the License.
<service
android:exported="false"
android:name="com.google.android.apps.mytracks.services.ControlRecordingService" />
<service android:name="com.google.android.apps.mytracks.services.RemoveTempFilesService" />
<service
android:enabled="true"
android:exported="true"
@@ -280,6 +279,7 @@ limitations under the License.
<provider
android:authorities="com.google.android.maps.mytracks"
android:exported="true"
android:grantUriPermissions="true"
android:name="com.google.android.apps.mytracks.content.MyTracksProvider"
android:readPermission="com.google.android.apps.mytracks.READ_TRACK_DATA"
android:writePermission="com.google.android.apps.mytracks.WRITE_TRACK_DATA" />
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2012 Google Inc.
Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -14,15 +14,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/help_ok"
android:layout_gravity="left"
android:text="@string/generic_ok"
style="@style/BottomButton" />
<Button
android:id="@+id/help_about"
android:layout_gravity="right"
android:text="@string/help_about"
style="@style/BottomButton" />
</merge>
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fromAlpha="1.0"
android:interpolator="@android:anim/linear_interpolator"
android:toAlpha="0.0" />
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 B

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 B

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 522 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:state_window_focused="false"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_on_holo_dark" />
<item android:state_checked="false" android:state_window_focused="false"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_off_holo_dark" />
<item android:state_checked="true" android:state_pressed="true"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_on_pressed_holo_dark" />
<item android:state_checked="false" android:state_pressed="true"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_off_pressed_holo_dark" />
<item android:state_checked="true" android:state_focused="true"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_on_focused_holo_dark" />
<item android:state_checked="false" android:state_focused="true"
android:state_enabled="true"
android:drawable="@drawable/btn_radio_off_focused_holo_dark" />
<item android:state_checked="false" android:state_enabled="true"
android:drawable="@drawable/btn_radio_off_holo_dark" />
<item android:state_checked="true" android:state_enabled="true"
android:drawable="@drawable/btn_radio_on_holo_dark" />
<!-- Disabled states -->
<item android:state_checked="true" android:state_window_focused="false"
android:drawable="@drawable/btn_radio_on_disabled_holo_dark" />
<item android:state_checked="false" android:state_window_focused="false"
android:drawable="@drawable/btn_radio_off_disabled_holo_dark" />
<item android:state_checked="true" android:state_focused="true"
android:drawable="@drawable/btn_radio_on_disabled_focused_holo_dark" />
<item android:state_checked="false" android:state_focused="true"
android:drawable="@drawable/btn_radio_off_disabled_focused_holo_dark" />
<item android:state_checked="false" android:drawable="@drawable/btn_radio_off_disabled_holo_dark" />
<item android:state_checked="true" android:drawable="@drawable/btn_radio_on_disabled_holo_dark" />
</selector>
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false"
android:drawable="@drawable/spinner_disabled_holo_dark" />
<item android:state_pressed="true"
android:drawable="@drawable/spinner_pressed_holo_dark" />
<item android:state_pressed="false" android:state_focused="true"
android:drawable="@drawable/spinner_focused_holo_dark" />
<item android:drawable="@drawable/spinner_default_holo_dark" />
</selector>
+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient
android:angle="90"
android:centerColor="@color/text_gradient_center"
android:endColor="@color/text_gradient_start"
android:startColor="@color/text_gradient_end" />
</shape>
+144
View File
@@ -0,0 +1,144 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Distance, calorie, total time, and moving time -->
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<include
android:id="@+id/stats_distance"
layout="@layout/stats_large_item" />
<include
android:id="@+id/stats_calorie"
layout="@layout/stats_calorie" />
<View
android:layout_height="match_parent"
android:layout_width="1dp"
android:visibility="invisible" />
<include
android:id="@+id/stats_total_time"
layout="@layout/stats_large_item" />
<include
android:id="@+id/stats_moving_time"
layout="@layout/stats_large_item" />
</LinearLayout>
<!-- Horizontal line -->
<View style="@style/StatsHorizontalLine" />
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<TableLayout
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_width="0dp" >
<!-- Speed and average speed -->
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<include
android:id="@+id/stats_speed"
layout="@layout/stats_small_item" />
<include
android:id="@+id/stats_average_speed"
layout="@layout/stats_small_item" />
</LinearLayout>
<!-- Max speed and average moving speed -->
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<include
android:id="@+id/stats_max_speed"
layout="@layout/stats_small_item" />
<include
android:id="@+id/stats_average_moving_speed"
layout="@layout/stats_small_item" />
</LinearLayout>
<!-- Latitude and longitude -->
<LinearLayout
android:id="@+id/stats_coordinate_container"
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<include
android:id="@+id/stats_latitude"
layout="@layout/stats_small_item" />
<include
android:id="@+id/stats_longitude"
layout="@layout/stats_small_item" />
</LinearLayout>
</TableLayout>
<!-- Vertical line -->
<View
android:background="@color/stats_separator"
android:id="@+id/stats_grade_elevation_separator"
android:layout_height="match_parent"
android:layout_width="1dp" />
<LinearLayout
android:id="@+id/stats_grade_elevation_container"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_width="0dp" >
<!-- Grade -->
<LinearLayout style="@style/StatsSmallGroupContainer" >
<!-- Grade label -->
<TextView
android:text="@string/stats_grade"
style="@style/StatsSmallLabel" />
<TableLayout
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_width="wrap_content" >
<!-- Grade min -->
<include
android:id="@+id/stats_grade_min"
layout="@layout/stats_small_group_item" />
<!-- Grade max -->
<include
android:id="@+id/stats_grade_max"
layout="@layout/stats_small_group_item" />
</TableLayout>
</LinearLayout>
<!-- Elevation -->
<LinearLayout style="@style/StatsSmallGroupContainer" >
<!-- Elevation label -->
<TextView
android:text="@string/stats_elevation"
style="@style/StatsSmallLabel" />
<TableLayout
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_width="wrap_content" >
<!-- Elevation -->
<include
android:id="@+id/stats_elevation"
layout="@layout/stats_small_group_item" />
<!-- Elevation gain -->
<include
android:id="@+id/stats_elevation_gain"
layout="@layout/stats_small_group_item" />
<!-- Elevation min -->
<include
android:id="@+id/stats_elevation_min"
layout="@layout/stats_small_group_item" />
<!-- Elevation max -->
<include
android:id="@+id/stats_elevation_max"
layout="@layout/stats_small_group_item" />
</TableLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</merge>
@@ -29,7 +29,7 @@ limitations under the License.
android:layout_width="match_parent" />
<ImageButton
android:background="@android:color/transparent"
android:contentDescription="@string/icon_record_track"
android:contentDescription="@string/image_record"
android:id="@+id/track_controller_record"
android:layout_height="0dp"
android:layout_weight="10"
@@ -56,7 +56,7 @@ limitations under the License.
</RelativeLayout>
<ImageButton
android:background="@android:color/transparent"
android:contentDescription="@string/icon_stop_recording"
android:contentDescription="@string/image_stop"
android:id="@+id/track_controller_stop"
android:layout_height="0dp"
android:layout_weight="10"
+1 -2
View File
@@ -17,8 +17,7 @@ limitations under the License.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:baselineAligned="false"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="horizontal" >
android:layout_width="match_parent" >
<include layout="@layout/track_controller" />
<TabHost
android:id="@android:id/tabhost"
+55 -7
View File
@@ -15,21 +15,69 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:baselineAligned="false"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="horizontal" >
android:layout_width="match_parent" >
<include layout="@layout/track_controller" />
<ListView
android:id="@+id/track_list"
android:layout_height="match_parent"
android:layout_weight="1.0"
android:layout_width="0dp" />
<TextView
<RelativeLayout
android:id="@+id/track_list_empty_view"
android:layout_height="match_parent"
android:layout_weight="1.0"
android:layout_width="0dp"
android:text="@string/track_list_empty_message"
style="@style/ListEmptyTextView" >
</TextView>
android:layout_width="0dp" >
<LinearLayout
android:id="@+id/track_list_arrow_long"
android:layout_alignParentLeft="true"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:orientation="vertical"
android:paddingLeft="12dp"
android:paddingRight="16dp" >
<View
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="match_parent" />
<ImageView
android:contentDescription="@string/image_arrow"
android:layout_height="0dp"
android:layout_weight="10"
android:layout_width="wrap_content"
android:src="@drawable/ic_arrow_long" />
<View
android:layout_height="0dp"
android:layout_weight="17"
android:layout_width="match_parent" />
</LinearLayout>
<LinearLayout
android:layout_height="match_parent"
android:layout_toRightOf="@id/track_list_arrow_long"
android:layout_width="match_parent"
android:orientation="vertical" >
<View
android:layout_height="0dp"
android:layout_weight="4"
android:layout_width="match_parent" />
<LinearLayout
android:layout_height="0dp"
android:layout_weight="24"
android:layout_width="match_parent" >
<TextView
android:layout_height="wrap_content"
android:layout_weight=".7"
android:layout_width="0dp"
android:text="@string/track_list_empty_message"
android:textColor="@color/list_empty_text"
style="@style/TextLarge" >
</TextView>
<View
android:layout_height="match_parent"
android:layout_weight=".3"
android:layout_width="0dp" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
-49
View File
@@ -1,49 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2008 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/ScrollView" >
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:padding="8dp" >
<TextView
android:drawableLeft="@drawable/ic_launcher_my_tracks"
android:text="@string/about_copyright_notice"
style="@style/TextMedium.WithIcon" />
<TextView
android:text="@string/about_version"
style="@style/TextLarge" />
<TextView
android:id="@+id/about_version"
style="@style/AboutValue" />
<TextView
android:text="@string/about_support"
style="@style/TextLarge" />
<TextView
android:autoLink="web"
android:text="@string/my_tracks_support_url"
style="@style/AboutValue" />
<TextView
android:text="@string/about_privacy"
style="@style/TextLarge" />
<TextView
android:autoLink="web"
android:text="@string/my_tracks_privacy_url"
style="@style/AboutValue" />
</LinearLayout>
</ScrollView>
@@ -14,14 +14,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/settings_google" >
<ListPreference
android:defaultValue=""
android:key="@string/google_account_key"
android:title="@string/settings_google_account_title" />
<CheckBoxPreference
android:defaultValue="false"
android:key="@string/drive_sync_key"
android:title="@string/menu_sync_drive" />
</PreferenceScreen>
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:ellipsize="marquee"
android:gravity="center_vertical"
android:id="@android:id/text1"
android:layout_height="48dp"
android:layout_width="match_parent"
android:padding="8dp"
android:singleLine="true"
style="@style/TextSmall" />
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2012 Google Inc.
Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -14,16 +14,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- In v14, postive button on the right. -->
<Button
android:id="@+id/help_about"
android:layout_gravity="left"
android:text="@string/help_about"
style="@style/BottomButton" />
<Button
android:id="@+id/help_ok"
android:layout_gravity="right"
android:text="@string/generic_ok"
style="@style/BottomButton" />
</merge>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:ellipsize="marquee"
android:id="@android:id/text1"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:paddingLeft="8dp"
android:singleLine="true"
style="@style/TextSmall" />
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2012 Google Inc.
Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -19,21 +19,20 @@ limitations under the License.
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:paddingBottom="12dp"
android:paddingLeft="14dp"
android:paddingRight="10dp"
android:paddingTop="2dp" >
<TextView
android:autoLink="web"
android:id="@+id/confirm_dialog_message"
style="@style/TextMedium" />
<CheckBox
android:id="@+id/confirm_dialog_check_box"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="16dp" >
<AutoCompleteTextView
android:hint="@string/track_edit_activity_type_hint"
android:id="@+id/activity_type_preference_text_view"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_width="0dp"
style="@style/EditCategory" />
<Spinner
android:id="@+id/activity_type_preference_spinner"
android:layout_gravity="bottom"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_width="match_parent"
android:text="@string/generic_do_not_show_again"
style="@style/TextMedium" />
android:layout_width="wrap_content" />
</LinearLayout>
</ScrollView>
@@ -19,11 +19,10 @@ limitations under the License.
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:minHeight="?android:attr/listPreferredItemHeight"
android:orientation="horizontal"
android:paddingLeft="16dp"
android:paddingRight="16dp" >
<ImageView
android:contentDescription="@string/icon_application"
android:contentDescription="@string/image_application"
android:id="@+id/choose_activity_list_item_icon"
android:layout_height="@android:dimen/app_icon_size"
android:layout_width="@android:dimen/app_icon_size"
+37 -5
View File
@@ -14,10 +14,42 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:numColumns="4"
android:padding="4dp"
android:stretchMode="spacingWidth"
android:verticalSpacing="4dp" />
android:orientation="vertical" >
<GridView
android:id="@+id/choose_activity_type_grid_view"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="match_parent"
android:numColumns="4"
android:padding="4dp"
android:stretchMode="spacingWidth"
android:verticalSpacing="4dp" />
<LinearLayout
android:id="@+id/choose_activity_type_weight_container"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/choose_activity_type_weight_label"
android:layout_marginBottom="2dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="4dp"
android:paddingLeft="12dp"
style="@style/TextMedium" />
<EditText
android:id="@+id/choose_activity_type_weight"
android:inputType="numberDecimal"
android:layout_marginBottom="4dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="2dp"
android:layout_width="match_parent"
android:selectAllOnFocus="true"
android:singleLine="true"
style="@style/TextMedium" />
</LinearLayout>
</LinearLayout>
+12 -19
View File
@@ -16,15 +16,15 @@ limitations under the License.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/ScrollView" >
<RadioGroup
android:id="@+id/export_type_options"
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:padding="8dp" >
<RadioButton
android:id="@+id/export_google_maps"
android:text="@string/export_google_maps"
style="@style/TextMedium" />
<Spinner
android:id="@+id/export_type_options"
android:layout_height="wrap_content"
android:layout_width="match_parent" />
<RadioGroup
android:id="@+id/export_google_maps_options"
style="@style/ExportRadioGroup" >
@@ -37,10 +37,6 @@ limitations under the License.
android:text="@string/export_google_maps_unlisted"
style="@style/TextMedium" />
</RadioGroup>
<RadioButton
android:id="@+id/export_google_fusion_tables"
android:text="@string/export_google_fusion_tables"
style="@style/TextMedium" />
<RadioGroup
android:id="@+id/export_google_fusion_tables_options"
style="@style/ExportRadioGroup" >
@@ -53,14 +49,6 @@ limitations under the License.
android:text="@string/export_google_fusion_tables_private"
style="@style/TextMedium" />
</RadioGroup>
<RadioButton
android:id="@+id/export_google_spreadsheets"
android:text="@string/export_google_spreadsheets"
style="@style/TextMedium" />
<RadioButton
android:id="@+id/export_external_storage"
android:text="@string/export_external_storage"
style="@style/TextMedium" />
<RadioGroup
android:id="@+id/export_external_storage_options"
style="@style/ExportRadioGroup" >
@@ -77,5 +65,10 @@ limitations under the License.
android:id="@+id/export_external_storage_tcx"
style="@style/TextMedium" />
</RadioGroup>
</RadioGroup>
<Spinner
android:id="@+id/export_account"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:layout_width="wrap_content" />
</LinearLayout>
</ScrollView>
+8 -1
View File
@@ -26,6 +26,13 @@ limitations under the License.
</ScrollView>
<View style="@style/BottomButtonDivider" />
<LinearLayout style="@style/BottomButtonBar" >
<include layout="@layout/help_buttons" />
<Button
android:id="@+id/help_feedback"
android:layout_gravity="center"
android:text="@string/menu_feedback"
android:textAllCaps="true"
android:textColor="@android:color/white"
android:textSize="14sp"
style="@style/BottomButton" />
</LinearLayout>
</LinearLayout>
+104 -47
View File
@@ -14,64 +14,121 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:minHeight="?android:attr/listPreferredItemHeight"
android:paddingBottom="12dp"
android:paddingRight="12dp"
android:paddingTop="8dp"
android:shrinkColumns="1"
android:stretchColumns="1"
style="@style/ListItem" >
<TableRow
android:layout_width="match_parent" >
<!-- Photo -->
<ImageView
android:contentDescription="@string/image_photo_marker"
android:id="@+id/list_item_photo"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_marginBottom="4dp"
android:scaleType="centerCrop" />
<FrameLayout
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<!-- A gradient on top of the text -->
<ImageView
android:contentDescription="@string/icon_track"
android:id="@+id/list_item_icon"
android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_width="wrap_content" />
android:alpha=".6"
android:contentDescription="@string/image_photo_marker"
android:id="@+id/list_item_text_gradient"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:src="@drawable/text_gradient" />
<!-- Table 1 -->
<TableLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:shrinkColumns="0"
android:stretchColumns="0" >
android:minHeight="?android:attr/listPreferredItemHeight"
android:paddingBottom="12dp"
android:paddingRight="12dp"
android:paddingTop="8dp"
android:shrinkColumns="1"
android:stretchColumns="1" >
<!-- Table 1: Row 1 -->
<TableRow>
<TextView
android:id="@+id/list_item_name"
android:layout_gravity="bottom"
android:layout_width="fill_parent"
android:singleLine="true"
style="@style/TextMedium" />
<TextView
android:id="@+id/list_item_date"
style="@style/ListItemDate" />
<!-- Table 1: Row 1: Column 1: (icon) -->
<ImageView
android:contentDescription="@string/image_track"
android:id="@+id/list_item_icon"
android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_width="wrap_content" />
<!-- Table 1: Row 1: Column 2: (Table 2) -->
<TableLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:shrinkColumns="0"
android:stretchColumns="0" >
<TableRow>
<!-- Table 2: Row 1: Column 1: (name) -->
<TextView
android:ellipsize="end"
android:id="@+id/list_item_name"
android:layout_gravity="bottom"
android:layout_width="match_parent"
android:singleLine="true"
style="@style/TextMedium" />
<!-- Table 2: Row 1: Column 2: (date) -->
<TextView
android:id="@+id/list_item_date"
style="@style/ListItemDate" />
</TableRow>
<TableRow>
<!-- Need to match the style set in ListItemUtils.setListItem -->
<!-- Table 2: Row 2: Column 1: (shared owner, total time, total distance, and marker count) -->
<LinearLayout
android:layout_gravity="bottom"
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<TextView
android:ellipsize="end"
android:id="@+id/list_item_owner_time_distance"
android:layout_gravity="bottom"
android:singleLine="true"
style="@style/TextSmall" />
<ImageView
android:contentDescription="@string/image_marker_count"
android:id="@+id/list_item_marker_count_icon"
android:layout_gravity="bottom"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:layout_width="wrap_content"
android:scaleType="centerInside"
android:src="@drawable/ic_menu_insert_marker" />
<TextView
android:ellipsize="end"
android:id="@+id/list_item_marker_count"
android:layout_gravity="bottom"
android:singleLine="true"
style="@style/TextSmall" />
</LinearLayout>
<!-- Table 2: Row 2: Column 2: (time) -->
<TextView
android:id="@+id/list_item_time"
style="@style/ListItemDate" />
</TableRow>
</TableLayout>
</TableRow>
<TableRow>
<!-- Need to match the style set in ListItemUtils.setListItem -->
<!-- Table 1: Row 2: (category and description) -->
<TextView
android:id="@+id/list_item_time_distance"
android:layout_gravity="bottom"
android:layout_width="fill_parent"
android:singleLine="true"
android:ellipsize="end"
android:id="@+id/list_item_category_description"
android:layout_column="1"
android:maxLines="2"
android:singleLine="false"
style="@style/TextSmall" />
<TextView
android:id="@+id/list_item_time"
style="@style/ListItemDate" />
</TableRow>
</TableLayout>
</TableRow>
<TableRow
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<TextView
android:id="@+id/list_item_description"
android:layout_column="1"
android:singleLine="false"
style="@style/TextSmall" />
</TableRow>
</TableLayout>
</FrameLayout>
<View
android:layout_height="match_parent"
android:layout_width="match_parent"
style="@style/ListItem" />
</FrameLayout>
+2 -2
View File
@@ -19,7 +19,7 @@ limitations under the License.
android:layout_height="match_parent"
android:layout_width="match_parent" >
<TextView
android:background="@color/warning_background"
android:background="@color/holo_orange_dark"
android:drawableLeft="@drawable/ic_warning"
android:gravity="left|center_vertical"
android:id="@+id/map_message"
@@ -31,7 +31,7 @@ limitations under the License.
style="@style/TextMedium.WithIcon" />
<ImageButton
android:background="@drawable/my_location"
android:contentDescription="@string/icon_my_location"
android:contentDescription="@string/image_my_location"
android:id="@+id/map_my_location"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
-50
View File
@@ -1,50 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/StatsScrollView" >
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:padding="8dp" >
<TextView
android:id="@+id/marker_detail_name"
style="@style/TextLarge" />
<LinearLayout
android:id="@+id/marker_detail_waypoint_section"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/marker_detail_waypoint_marker_type"
style="@style/TextLarge.WithTopMargin" />
<TextView
android:id="@+id/marker_detail_waypoint_description"
style="@style/TextLarge.WithTopMargin" />
</LinearLayout>
<LinearLayout
android:id="@+id/marker_detail_statistics_section"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical" >
<TextView
android:text="@string/marker_detail_statistics_title"
style="@style/TextLarge.WithTopMargin" />
<include layout="@layout/stats_content" />
</LinearLayout>
</LinearLayout>
</ScrollView>
@@ -15,17 +15,10 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/stats_small_1line_id"
style="@style/StatsSmallValueContainer" >
<TextView
android:id="@+id/stats_value"
style="@style/StatsSmallValue" />
<TextView
android:id="@+id/stats_unit"
style="@style/StatsUnit" />
<TextView
android:id="@+id/stats_label"
android:layout_gravity="bottom"
android:paddingLeft="8dp"
style="@style/StatsSmallLabel" />
android:layout_height="match_parent"
android:layout_width="match_parent" >
<android.support.v4.view.ViewPager
android:id="@+id/maker_detail_activity_view_pager"
android:layout_height="match_parent"
android:layout_width="match_parent" />
</LinearLayout>
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent" >
<FrameLayout
android:id="@+id/marker_detail_waypoint"
android:layout_height="match_parent"
android:layout_width="match_parent" >
<ImageView
android:background="@android:color/black"
android:contentDescription="@string/image_photo_marker"
android:id="@+id/marker_detail_waypoint_photo"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:scaleType="fitCenter" />
<FrameLayout
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<!-- A gradient on top of the text -->
<ImageView
android:alpha=".6"
android:contentDescription="@string/image_photo_marker"
android:id="@+id/marker_detail_waypoint_text_gradient"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:src="@drawable/text_gradient" />
<LinearLayout
android:id="@+id/marker_detail_waypoint_info"
android:layout_height="wrap_content"
android:layout_marginBottom="80dp"
android:layout_width="match_parent"
android:orientation="vertical"
android:padding="8dp" >
<TextView
android:id="@+id/marker_detail_waypoint_name"
android:paddingTop="8dp"
style="@style/TextMedium" />
<TextView
android:id="@+id/marker_detail_waypoint_category"
style="@style/TextSmall" />
<TextView
android:id="@+id/marker_detail_waypoint_description"
style="@style/TextSmall" />
<TextView
android:id="@+id/marker_detail_waypoint_location"
style="@style/TextSmall" />
</LinearLayout>
</FrameLayout>
</FrameLayout>
<ScrollView
android:id="@+id/marker_detail_statistics"
style="@style/StatsScrollView" >
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:padding="8dp" >
<TextView
android:id="@+id/marker_detail_statistics_name"
android:paddingTop="8dp"
style="@style/TextMedium" />
<TextView
android:id="@+id/marker_detail_statistics_location"
style="@style/TextSmall" />
<TextView
android:paddingBottom="6dp"
android:paddingTop="4dp"
android:text="@string/marker_detail_statistics_title"
style="@style/TextSmall" />
<include layout="@layout/stats_content" />
</LinearLayout>
</ScrollView>
</FrameLayout>
+1
View File
@@ -57,6 +57,7 @@ limitations under the License.
android:hint="@string/marker_edit_marker_type_hint"
android:id="@+id/marker_edit_waypoint_marker_type"
android:imeOptions="actionNext"
android:layout_width="match_parent"
style="@style/EditCategory" />
<TextView
android:text="@string/generic_description"
+7 -5
View File
@@ -20,7 +20,7 @@ limitations under the License.
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:padding="8dp">
android:padding="8dp" >
<CheckBox
android:id="@+id/share_track_public"
android:layout_gravity="center_vertical"
@@ -43,9 +43,11 @@ limitations under the License.
android:singleLine="false"
android:visibility="gone" >
</MultiAutoCompleteTextView>
<TextView
android:text="@string/share_track_footer"
android:layout_marginTop="16dp"
style="@style/TextSmall" />
<Spinner
android:id="@+id/share_track_account"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginTop="24dp"
android:layout_width="wrap_content" />
</LinearLayout>
</ScrollView>

Some files were not shown because too many files have changed in this diff Show More