Autoformatted all resources.

This commit is contained in:
Dennis Guse
2019-07-23 22:25:01 +02:00
parent 363cb14bff
commit cd52dc29c9
77 changed files with 3909 additions and 4116 deletions
+190 -188
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,191 +14,194 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto" package="com.google.android.maps.mytracks"
android:versionCode="74" android:installLocation="auto"
android:versionName="2.0.6" android:versionCode="74"
package="com.google.android.maps.mytracks" > android:versionName="2.0.6">
<!-- Permission to initialize services --> <!-- Permission to initialize services -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<!-- Permissions to record locations --> <!-- Permissions to record locations -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- Permissions to access sensors --> <!-- Permissions to access sensors -->
<uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<!-- Permission to read phone state so voice announcement will not interrupt ongoing calls --> <!-- Permission to read phone state so voice announcement will not interrupt ongoing calls -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!-- Permission to read/write external storage --> <!-- Permission to read/write external storage -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Permissions to access My Tracks data --> <!-- Permissions to access My Tracks data -->
<uses-permission android:name="com.google.android.apps.mytracks.MYTRACKS_NOTIFICATIONS" /> <uses-permission android:name="com.google.android.apps.mytracks.MYTRACKS_NOTIFICATIONS" />
<!-- Permission to receive My Tracks internal broadcasts --> <!-- Permission to receive My Tracks internal broadcasts -->
<permission <permission
android:name="com.google.android.apps.mytracks.MYTRACKS_NOTIFICATIONS" android:name="com.google.android.apps.mytracks.MYTRACKS_NOTIFICATIONS"
android:permissionGroup="android.permission-group.LOCATION" android:permissionGroup="android.permission-group.LOCATION"
android:protectionLevel="signature" /> android:protectionLevel="signature" />
<!-- Required features --> <!-- Required features -->
<uses-feature <uses-feature
android:name="android.hardware.location.gps" android:name="android.hardware.location.gps"
android:required="true" /> android:required="true" />
<!-- Optional features --> <!-- Optional features -->
<uses-feature <uses-feature
android:name="android.hardware.bluetooth" android:name="android.hardware.bluetooth"
android:required="false" /> android:required="false" />
<uses-feature <uses-feature
android:name="android.hardware.camera" android:name="android.hardware.camera"
android:required="false" /> android:required="false" />
<uses-feature <uses-feature
android:name="android.hardware.faketouch" android:name="android.hardware.faketouch"
android:required="false" /> android:required="false" />
<uses-feature <uses-feature
android:name="android.hardware.sensor.compass" android:name="android.hardware.sensor.compass"
android:required="false" /> android:required="false" />
<uses-feature <uses-feature
android:name="android.hardware.telephony" android:name="android.hardware.telephony"
android:required="false" /> android:required="false" />
<uses-feature <uses-feature
android:name="android.hardware.telephony.gsm" android:name="android.hardware.telephony.gsm"
android:required="false" /> android:required="false" />
<uses-feature <uses-feature
android:name="android.hardware.touchscreen" android:name="android.hardware.touchscreen"
android:required="false" /> android:required="false" />
<uses-feature <uses-feature
android:name="android.hardware.touchscreen.multitouch" android:name="android.hardware.touchscreen.multitouch"
android:required="false" /> android:required="false" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<application
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_logo"
android:label="@string/app_name"
android:theme="@style/ThemeCustom"
tools:replace="android:label" >
<!-- Activities -->
<activity
android:label="@string/menu_aggregated_statistics"
android:name="com.google.android.apps.mytracks.AggregatedStatsActivity" />
<activity android:name="com.google.android.apps.mytracks.DeleteActivity" />
<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" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/gpx" />
<data android:mimeType="application/gpx+xml" />
<data android:mimeType="application/vnd.google-earth.gpx" />
<data android:mimeType="application/vnd.google-earth.gpx+xml" />
<data android:scheme="file" />
</intent-filter>
</activity>
<activity android:name="com.google.android.apps.mytracks.MarkerEditActivity" />
<activity android:name="com.google.android.apps.mytracks.MarkerDetailActivity" />
<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" />
</activity>
<activity
android:launchMode="singleTop"
android:name="com.google.android.apps.mytracks.SearchListActivity" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="@xml/search" />
</activity>
<activity
android:name="com.google.android.apps.mytracks.TrackDetailActivity"
android:parentActivityName="com.google.android.apps.mytracks.TrackListActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.google.android.apps.mytracks.TrackListActivity" />
</activity>
<activity android:name="com.google.android.apps.mytracks.TrackEditActivity" />
<activity android:name="com.google.android.apps.mytracks.TrackListActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="android.app.default_searchable"
android:value="com.google.android.apps.mytracks.SearchListActivity" />
</activity>
<activity android:name="com.google.android.apps.mytracks.io.file.exporter.SaveActivity" />
<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.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.StatsSettingsActivity" />
<activity
android:label="@string/track_widget_config_title"
android:name="com.google.android.apps.mytracks.widgets.TrackWidgetConfigActivity" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<service
android:exported="false"
android:name="com.google.android.apps.mytracks.services.ControlRecordingService" />
<service
android:enabled="true"
android:exported="false"
android:icon="@drawable/ic_arrow_320"
android:label="@string/recording_service"
android:name="com.google.android.apps.mytracks.services.TrackRecordingService" />
<!-- Receivers -->
<receiver android:name="com.google.android.apps.mytracks.BootReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<receiver android:name="com.google.android.apps.mytracks.widgets.TrackWidgetProvider" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="com.google.android.apps.mytracks.TRACK_PAUSED" />
<action android:name="com.google.android.apps.mytracks.TRACK_RESUMED" />
<action android:name="com.google.android.apps.mytracks.TRACK_STARTED" />
<action android:name="com.google.android.apps.mytracks.TRACK_STOPPED" />
<action android:name="com.google.android.apps.mytracks.TRACK_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/track_widget_info" />
</receiver>
<!-- Providers -->
<provider
android:authorities="com.google.android.maps.mytracks"
android:exported="false"
android:grantUriPermissions="true"
android:name="com.google.android.apps.mytracks.content.CustomContentProvider"
/>
<!-- Search suggestion provider -->
<provider
android:authorities="com.google.android.maps.mytracks.search"
android:exported="false"
android:name="com.google.android.apps.mytracks.content.SearchEngineProvider" />
<provider <supports-screens
android:name="androidx.core.content.FileProvider" android:anyDensity="true"
android:authorities="com.google.android.apps.mytracks.fileprovider" android:largeScreens="true"
android:exported="false" android:normalScreens="true"
android:grantUriPermissions="true"> android:smallScreens="true"
<meta-data android:xlargeScreens="true" />
android:name="android.support.FILE_PROVIDER_PATHS" <application
android:resource="@xml/file_paths" /> android:allowBackup="true"
</provider> android:hardwareAccelerated="true"
</application> android:icon="@drawable/ic_logo"
android:label="@string/app_name"
android:theme="@style/ThemeCustom"
tools:replace="android:label">
<!-- Activities -->
<activity
android:name="com.google.android.apps.mytracks.AggregatedStatsActivity"
android:label="@string/menu_aggregated_statistics" />
<activity android:name="com.google.android.apps.mytracks.DeleteActivity" />
<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" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/gpx" />
<data android:mimeType="application/gpx+xml" />
<data android:mimeType="application/vnd.google-earth.gpx" />
<data android:mimeType="application/vnd.google-earth.gpx+xml" />
<data android:scheme="file" />
</intent-filter>
</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"
android:label="@string/menu_markers">
<meta-data
android:name="android.app.default_searchable"
android:value="com.google.android.apps.mytracks.SearchListActivity" />
</activity>
<activity
android:name="com.google.android.apps.mytracks.SearchListActivity"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="@xml/search" />
</activity>
<activity
android:name="com.google.android.apps.mytracks.TrackDetailActivity"
android:parentActivityName="com.google.android.apps.mytracks.TrackListActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.google.android.apps.mytracks.TrackListActivity" />
</activity>
<activity android:name="com.google.android.apps.mytracks.TrackEditActivity" />
<activity android:name="com.google.android.apps.mytracks.TrackListActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="android.app.default_searchable"
android:value="com.google.android.apps.mytracks.SearchListActivity" />
</activity>
<activity android:name="com.google.android.apps.mytracks.io.file.exporter.SaveActivity" />
<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.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.StatsSettingsActivity" />
<activity
android:name="com.google.android.apps.mytracks.widgets.TrackWidgetConfigActivity"
android:label="@string/track_widget_config_title">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<service
android:name="com.google.android.apps.mytracks.services.ControlRecordingService"
android:exported="false" />
<service
android:name="com.google.android.apps.mytracks.services.TrackRecordingService"
android:enabled="true"
android:exported="false"
android:icon="@drawable/ic_arrow_320"
android:label="@string/recording_service" />
<!-- Receivers -->
<receiver android:name="com.google.android.apps.mytracks.BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<receiver android:name="com.google.android.apps.mytracks.widgets.TrackWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="com.google.android.apps.mytracks.TRACK_PAUSED" />
<action android:name="com.google.android.apps.mytracks.TRACK_RESUMED" />
<action android:name="com.google.android.apps.mytracks.TRACK_STARTED" />
<action android:name="com.google.android.apps.mytracks.TRACK_STOPPED" />
<action android:name="com.google.android.apps.mytracks.TRACK_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/track_widget_info" />
</receiver>
<!-- Providers -->
<provider
android:name="com.google.android.apps.mytracks.content.CustomContentProvider"
android:authorities="com.google.android.maps.mytracks"
android:exported="false"
android:grantUriPermissions="true" />
<!-- Search suggestion provider -->
<provider
android:name="com.google.android.apps.mytracks.content.SearchEngineProvider"
android:authorities="com.google.android.maps.mytracks.search"
android:exported="false" />
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.google.android.apps.mytracks.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
</application>
</manifest> </manifest>
+5 -6
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<alpha xmlns:android="http://schemas.android.com/apk/res/android" <alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000" android:duration="1000"
android:fromAlpha="1.0" android:fromAlpha="1.0"
android:interpolator="@android:anim/linear_interpolator" android:interpolator="@android:anim/linear_interpolator"
android:toAlpha="0.0" /> android:toAlpha="0.0" />
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2008 The Android Open Source Project
<!-- Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -15,6 +14,6 @@
--> -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_activated="true" android:drawable="@drawable/list_activated_holo" /> <item android:drawable="@drawable/list_activated_holo" android:state_activated="true" />
<item android:drawable="@android:color/transparent" /> <item android:drawable="@android:color/transparent" />
</selector> </selector>
+15 -37
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2011 The Android Open Source Project
<!-- Copyright (C) 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -17,49 +16,28 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Enabled states --> <!-- Enabled states -->
<item android:state_checked="true" android:state_window_focused="false"
android:state_enabled="true"
android:drawable="@drawable/btn_check_on_holo_dark" />
<item android:state_checked="false" android:state_window_focused="false"
android:state_enabled="true"
android:drawable="@drawable/btn_check_off_holo_dark" />
<item android:state_checked="true" android:state_pressed="true" <item android:drawable="@drawable/btn_check_on_holo_dark" android:state_checked="true" android:state_enabled="true" android:state_window_focused="false" />
android:state_enabled="true" <item android:drawable="@drawable/btn_check_off_holo_dark" android:state_checked="false" android:state_enabled="true" android:state_window_focused="false" />
android:drawable="@drawable/btn_check_on_pressed_holo_dark" />
<item android:state_checked="false" android:state_pressed="true"
android:state_enabled="true"
android:drawable="@drawable/btn_check_off_pressed_holo_dark" />
<item android:state_checked="true" android:state_focused="true" <item android:drawable="@drawable/btn_check_on_pressed_holo_dark" android:state_checked="true" android:state_enabled="true" android:state_pressed="true" />
android:state_enabled="true" <item android:drawable="@drawable/btn_check_off_pressed_holo_dark" android:state_checked="false" android:state_enabled="true" android:state_pressed="true" />
android:drawable="@drawable/btn_check_on_focused_holo_dark" />
<item android:state_checked="false" android:state_focused="true"
android:state_enabled="true"
android:drawable="@drawable/btn_check_off_focused_holo_dark" />
<item android:state_checked="false" <item android:drawable="@drawable/btn_check_on_focused_holo_dark" android:state_checked="true" android:state_enabled="true" android:state_focused="true" />
android:state_enabled="true" <item android:drawable="@drawable/btn_check_off_focused_holo_dark" android:state_checked="false" android:state_enabled="true" android:state_focused="true" />
android:drawable="@drawable/btn_check_off_holo_dark" />
<item android:state_checked="true"
android:state_enabled="true"
android:drawable="@drawable/btn_check_on_holo_dark" />
<item android:drawable="@drawable/btn_check_off_holo_dark" android:state_checked="false" android:state_enabled="true" />
<item android:drawable="@drawable/btn_check_on_holo_dark" android:state_checked="true" android:state_enabled="true" />
<!-- Disabled states --> <!-- Disabled states -->
<item android:state_checked="true" android:state_window_focused="false" <item android:drawable="@drawable/btn_check_on_disabled_holo_dark" android:state_checked="true" android:state_window_focused="false" />
android:drawable="@drawable/btn_check_on_disabled_holo_dark" /> <item android:drawable="@drawable/btn_check_off_disabled_holo_dark" android:state_checked="false" android:state_window_focused="false" />
<item android:state_checked="false" android:state_window_focused="false"
android:drawable="@drawable/btn_check_off_disabled_holo_dark" />
<item android:state_checked="true" android:state_focused="true" <item android:drawable="@drawable/btn_check_on_disabled_focused_holo_dark" android:state_checked="true" android:state_focused="true" />
android:drawable="@drawable/btn_check_on_disabled_focused_holo_dark" /> <item android:drawable="@drawable/btn_check_off_disabled_focused_holo_dark" android:state_checked="false" android:state_focused="true" />
<item android:state_checked="false" android:state_focused="true"
android:drawable="@drawable/btn_check_off_disabled_focused_holo_dark" />
<item android:state_checked="false" android:drawable="@drawable/btn_check_off_disabled_holo_dark" /> <item android:drawable="@drawable/btn_check_off_disabled_holo_dark" android:state_checked="false" />
<item android:state_checked="true" android:drawable="@drawable/btn_check_on_disabled_holo_dark" /> <item android:drawable="@drawable/btn_check_on_disabled_holo_dark" android:state_checked="true" />
</selector> </selector>
+16 -35
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2011 The Android Open Source Project
<!-- Copyright (C) 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -15,45 +14,27 @@
--> -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:state_window_focused="false" <item android:drawable="@drawable/btn_radio_on_holo_dark" android:state_checked="true" android:state_enabled="true" android:state_window_focused="false" />
android:state_enabled="true" <item android:drawable="@drawable/btn_radio_off_holo_dark" android:state_checked="false" android:state_enabled="true" android:state_window_focused="false" />
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" <item android:drawable="@drawable/btn_radio_on_pressed_holo_dark" android:state_checked="true" android:state_enabled="true" android:state_pressed="true" />
android:state_enabled="true" <item android:drawable="@drawable/btn_radio_off_pressed_holo_dark" android:state_checked="false" android:state_enabled="true" android:state_pressed="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" <item android:drawable="@drawable/btn_radio_on_focused_holo_dark" android:state_checked="true" android:state_enabled="true" android:state_focused="true" />
android:drawable="@drawable/btn_radio_off_holo_dark" /> <item android:drawable="@drawable/btn_radio_off_focused_holo_dark" android:state_checked="false" android:state_enabled="true" android:state_focused="true" />
<item android:state_checked="true" android:state_enabled="true"
android:drawable="@drawable/btn_radio_on_holo_dark" /> <item android:drawable="@drawable/btn_radio_off_holo_dark" android:state_checked="false" android:state_enabled="true" />
<item android:drawable="@drawable/btn_radio_on_holo_dark" android:state_checked="true" android:state_enabled="true" />
<!-- Disabled states --> <!-- Disabled states -->
<item android:state_checked="true" android:state_window_focused="false" <item android:drawable="@drawable/btn_radio_on_disabled_holo_dark" android:state_checked="true" android:state_window_focused="false" />
android:drawable="@drawable/btn_radio_on_disabled_holo_dark" /> <item android:drawable="@drawable/btn_radio_off_disabled_holo_dark" android:state_checked="false" android:state_window_focused="false" />
<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" <item android:drawable="@drawable/btn_radio_on_disabled_focused_holo_dark" android:state_checked="true" android:state_focused="true" />
android:drawable="@drawable/btn_radio_on_disabled_focused_holo_dark" /> <item android:drawable="@drawable/btn_radio_off_disabled_focused_holo_dark" android:state_checked="false" android:state_focused="true" />
<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:drawable="@drawable/btn_radio_off_disabled_holo_dark" android:state_checked="false" />
<item android:state_checked="true" android:drawable="@drawable/btn_radio_on_disabled_holo_dark" /> <item android:drawable="@drawable/btn_radio_on_disabled_holo_dark" android:state_checked="true" />
</selector> </selector>
+3 -4
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,6 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_button_pause_pressed" android:state_pressed="true"/> <item android:drawable="@drawable/ic_button_pause_pressed" android:state_pressed="true" />
<item android:drawable="@drawable/ic_button_pause"/> <item android:drawable="@drawable/ic_button_pause" />
</selector> </selector>
+3 -4
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,6 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_button_record_pressed" android:state_pressed="true"/> <item android:drawable="@drawable/ic_button_record_pressed" android:state_pressed="true" />
<item android:drawable="@drawable/ic_button_record"/> <item android:drawable="@drawable/ic_button_record" />
</selector> </selector>
+3 -4
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,6 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_button_stop_pressed" android:state_pressed="true"/> <item android:drawable="@drawable/ic_button_stop_pressed" android:state_pressed="true" />
<item android:drawable="@drawable/ic_button_stop"/> <item android:drawable="@drawable/ic_button_stop" />
</selector> </selector>
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2010 The Android Open Source Project
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -15,11 +14,11 @@
--> -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/textfield_default_holo_dark" /> <item android:drawable="@drawable/textfield_default_holo_dark" android:state_enabled="true" android:state_window_focused="false" />
<item android:state_window_focused="false" android:state_enabled="false" android:drawable="@drawable/textfield_disabled_holo_dark" /> <item android:drawable="@drawable/textfield_disabled_holo_dark" android:state_enabled="false" android:state_window_focused="false" />
<item android:state_enabled="true" android:state_focused="true" android:drawable="@drawable/textfield_activated_holo_dark" /> <item android:drawable="@drawable/textfield_activated_holo_dark" android:state_enabled="true" android:state_focused="true" />
<item android:state_enabled="true" android:state_activated="true" android:drawable="@drawable/textfield_focused_holo_dark" /> <item android:drawable="@drawable/textfield_focused_holo_dark" android:state_activated="true" android:state_enabled="true" />
<item android:state_enabled="true" android:drawable="@drawable/textfield_default_holo_dark" /> <item android:drawable="@drawable/textfield_default_holo_dark" android:state_enabled="true" />
<item android:state_focused="true" android:drawable="@drawable/textfield_disabled_focused_holo_dark" /> <item android:drawable="@drawable/textfield_disabled_focused_holo_dark" android:state_focused="true" />
<item android:drawable="@drawable/textfield_disabled_holo_dark" /> <item android:drawable="@drawable/textfield_disabled_holo_dark" />
</selector> </selector>
+18 -7
View File
@@ -1,12 +1,23 @@
<vector android:height="24dp" android:viewportHeight="100" <vector xmlns:android="http://schemas.android.com/apk/res/android"
android:viewportWidth="100" android:width="24dp" xmlns:aapt="http://schemas.android.com/aapt"
xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android"> android:width="24dp"
android:height="24dp"
android:viewportWidth="100"
android:viewportHeight="100">
<path android:pathData="M82.489,12.834C83.196,10.418 82.043,9.556 79.926,10.917L10.087,55.828c-2.117,1.361 -1.795,2.628 0.714,2.815L39.806,60.807c2.51,0.188 5.291,2.267 6.18,4.621l10.282,27.208c0.89,2.354 2.195,2.304 2.902,-0.111z"> <path android:pathData="M82.489,12.834C83.196,10.418 82.043,9.556 79.926,10.917L10.087,55.828c-2.117,1.361 -1.795,2.628 0.714,2.815L39.806,60.807c2.51,0.188 5.291,2.267 6.18,4.621l10.282,27.208c0.89,2.354 2.195,2.304 2.902,-0.111z">
<aapt:attr name="android:fillColor"> <aapt:attr name="android:fillColor">
<gradient android:endX="81.73018" android:endY="11.204678" <gradient
android:startX="27.696081" android:startY="83.44198" android:type="linear"> android:endX="81.73018"
<item android:color="#FFFBB22F" android:offset="0"/> android:endY="11.204678"
<item android:color="#FFF58820" android:offset="1"/> android:startX="27.696081"
android:startY="83.44198"
android:type="linear">
<item
android:color="#FFFBB22F"
android:offset="0" />
<item
android:color="#FFF58820"
android:offset="1" />
</gradient> </gradient>
</aapt:attr> </aapt:attr>
</path> </path>
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2010 The Android Open Source Project
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -15,6 +14,6 @@
--> -->
<transition xmlns:android="http://schemas.android.com/apk/res/android"> <transition xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/list_pressed_holo_dark" /> <item android:drawable="@drawable/list_pressed_holo_dark" />
<item android:drawable="@drawable/list_longpressed_holo" /> <item android:drawable="@drawable/list_longpressed_holo" />
</transition> </transition>
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2010 The Android Open Source Project
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -16,12 +15,12 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="@android:color/transparent" /> <item android:drawable="@android:color/transparent" android:state_window_focused="false" />
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. --> <!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/list_selector_disabled_holo_dark" /> <item android:drawable="@drawable/list_selector_disabled_holo_dark" android:state_enabled="false" android:state_focused="true" android:state_pressed="true" />
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/list_selector_disabled_holo_dark" /> <item android:drawable="@drawable/list_selector_disabled_holo_dark" android:state_enabled="false" android:state_focused="true" />
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_dark" /> <item android:drawable="@drawable/list_selector_background_transition_holo_dark" android:state_focused="true" android:state_pressed="true" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_dark" /> <item android:drawable="@drawable/list_selector_background_transition_holo_dark" android:state_focused="false" android:state_pressed="true" />
<item android:state_focused="true" android:drawable="@drawable/list_focused_holo" /> <item android:drawable="@drawable/list_focused_holo" android:state_focused="true" />
</selector> </selector>
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2010 The Android Open Source Project
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -16,17 +15,20 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background" <item
android:drawable="@drawable/progress_bg_holo_dark" /> android:id="@android:id/background"
android:drawable="@drawable/progress_bg_holo_dark" />
<item android:id="@android:id/secondaryProgress"> <item android:id="@android:id/secondaryProgress">
<scale android:scaleWidth="100%" <scale
android:drawable="@drawable/progress_secondary_holo_dark" /> android:drawable="@drawable/progress_secondary_holo_dark"
android:scaleWidth="100%" />
</item> </item>
<item android:id="@android:id/progress"> <item android:id="@android:id/progress">
<scale android:scaleWidth="100%" <scale
android:drawable="@drawable/progress_primary_holo_dark" /> android:drawable="@drawable/progress_primary_holo_dark"
android:scaleWidth="100%" />
</item> </item>
</layer-list> </layer-list>
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
/* /*
** Copyright 2011, The Android Open Source Project ** Copyright 2011, The Android Open Source Project
** **
@@ -16,15 +15,30 @@
** limitations under the License. ** limitations under the License.
*/ */
--> -->
<animation-list <animation-list xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false">
android:oneshot="false"> <item
<item android:drawable="@drawable/progressbar_indeterminate_holo1" android:duration="50" /> android:drawable="@drawable/progressbar_indeterminate_holo1"
<item android:drawable="@drawable/progressbar_indeterminate_holo2" android:duration="50" /> android:duration="50" />
<item android:drawable="@drawable/progressbar_indeterminate_holo3" android:duration="50" /> <item
<item android:drawable="@drawable/progressbar_indeterminate_holo4" android:duration="50" /> android:drawable="@drawable/progressbar_indeterminate_holo2"
<item android:drawable="@drawable/progressbar_indeterminate_holo5" android:duration="50" /> android:duration="50" />
<item android:drawable="@drawable/progressbar_indeterminate_holo6" android:duration="50" /> <item
<item android:drawable="@drawable/progressbar_indeterminate_holo7" android:duration="50" /> android:drawable="@drawable/progressbar_indeterminate_holo3"
<item android:drawable="@drawable/progressbar_indeterminate_holo8" android:duration="50" /> android:duration="50" />
<item
android:drawable="@drawable/progressbar_indeterminate_holo4"
android:duration="50" />
<item
android:drawable="@drawable/progressbar_indeterminate_holo5"
android:duration="50" />
<item
android:drawable="@drawable/progressbar_indeterminate_holo6"
android:duration="50" />
<item
android:drawable="@drawable/progressbar_indeterminate_holo7"
android:duration="50" />
<item
android:drawable="@drawable/progressbar_indeterminate_holo8"
android:duration="50" />
</animation-list> </animation-list>
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2010 The Android Open Source Project
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -15,11 +14,8 @@
--> -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" <item android:drawable="@drawable/spinner_disabled_holo_dark" android:state_enabled="false" />
android:drawable="@drawable/spinner_disabled_holo_dark" /> <item android:drawable="@drawable/spinner_pressed_holo_dark" android:state_pressed="true" />
<item android:state_pressed="true" <item android:drawable="@drawable/spinner_focused_holo_dark" android:state_focused="true" android:state_pressed="false" />
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" /> <item android:drawable="@drawable/spinner_default_holo_dark" />
</selector> </selector>
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,17 +14,17 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Non focused states --> <!-- Non focused states -->
<item android:drawable="@drawable/tab_unselected" android:state_focused="false" android:state_pressed="false" android:state_selected="false"/> <item android:drawable="@drawable/tab_unselected" android:state_focused="false" android:state_pressed="false" android:state_selected="false" />
<item android:drawable="@drawable/tab_selected" android:state_focused="false" android:state_pressed="false" android:state_selected="true"/> <item android:drawable="@drawable/tab_selected" android:state_focused="false" android:state_pressed="false" android:state_selected="true" />
<!-- Focused states --> <!-- Focused states -->
<item android:drawable="@drawable/tab_unselected_focused" android:state_focused="true" android:state_pressed="false" android:state_selected="false"/> <item android:drawable="@drawable/tab_unselected_focused" android:state_focused="true" android:state_pressed="false" android:state_selected="false" />
<item android:drawable="@drawable/tab_selected_focused" android:state_focused="true" android:state_pressed="false" android:state_selected="true"/> <item android:drawable="@drawable/tab_selected_focused" android:state_focused="true" android:state_pressed="false" android:state_selected="true" />
<!-- Pressed --> <!-- Pressed -->
<!-- Non focused states --> <!-- Non focused states -->
<item android:drawable="@drawable/tab_unselected_pressed" android:state_focused="false" android:state_pressed="true" android:state_selected="false"/> <item android:drawable="@drawable/tab_unselected_pressed" android:state_focused="false" android:state_pressed="true" android:state_selected="false" />
<item android:drawable="@drawable/tab_selected_pressed" android:state_focused="false" android:state_pressed="true" android:state_selected="true"/> <item android:drawable="@drawable/tab_selected_pressed" android:state_focused="false" android:state_pressed="true" android:state_selected="true" />
<!-- Focused states --> <!-- Focused states -->
<item android:drawable="@drawable/tab_unselected_pressed" android:state_focused="true" android:state_pressed="true" android:state_selected="false"/> <item android:drawable="@drawable/tab_unselected_pressed" android:state_focused="true" android:state_pressed="true" android:state_selected="false" />
<item android:drawable="@drawable/tab_selected_pressed" android:state_focused="true" android:state_pressed="true" android:state_selected="true"/> <item android:drawable="@drawable/tab_selected_pressed" android:state_focused="true" android:state_pressed="true" android:state_selected="true" />
</selector> </selector>
+7 -8
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright (C) 2013 The Android Open Source Project Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,10 +13,10 @@
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<shape xmlns:android="http://schemas.android.com/apk/res/android" > <shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient <gradient
android:angle="90" android:angle="90"
android:centerColor="@color/text_gradient_center" android:centerColor="@color/text_gradient_center"
android:endColor="@color/text_gradient_start" android:endColor="@color/text_gradient_start"
android:startColor="@color/text_gradient_end" /> android:startColor="@color/text_gradient_end" />
</shape> </shape>
+142 -127
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,131 +13,147 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<merge xmlns:android="http://schemas.android.com/apk/res/android" > <merge xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Distance, calorie, total time, and moving time --> <!-- 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_activity_type" />
<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 <LinearLayout
android:id="@+id/stats_grade_elevation_container" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:layout_weight="1"
android:layout_width="0dp" > <include
<!-- Grade --> android:id="@+id/stats_distance"
<LinearLayout style="@style/StatsSmallGroupContainer" > layout="@layout/stats_large_item" />
<!-- Grade label -->
<TextView <include
android:text="@string/stats_grade" android:id="@+id/stats_calorie"
style="@style/StatsSmallLabel" /> layout="@layout/stats_activity_type" />
<TableLayout
android:layout_gravity="center" <View
android:layout_height="wrap_content" android:layout_width="1dp"
android:layout_width="wrap_content" > android:layout_height="match_parent"
<!-- Grade min --> android:visibility="invisible" />
<include
android:id="@+id/stats_grade_min" <include
layout="@layout/stats_small_group_item" /> android:id="@+id/stats_total_time"
<!-- Grade max --> layout="@layout/stats_large_item" />
<include
android:id="@+id/stats_grade_max" <include
layout="@layout/stats_small_group_item" /> android:id="@+id/stats_moving_time"
</TableLayout> layout="@layout/stats_large_item" />
</LinearLayout> </LinearLayout>
<!-- Elevation --> <!-- Horizontal line -->
<LinearLayout style="@style/StatsSmallGroupContainer" > <View style="@style/StatsHorizontalLine" />
<!-- Elevation label -->
<TextView <LinearLayout
android:text="@string/stats_elevation" android:layout_width="match_parent"
style="@style/StatsSmallLabel" /> android:layout_height="wrap_content">
<TableLayout
android:layout_gravity="center" <TableLayout
android:layout_height="wrap_content" android:layout_width="0dp"
android:layout_width="wrap_content" > android:layout_height="wrap_content"
<!-- Elevation --> android:layout_weight="1">
<include <!-- Speed and average speed -->
android:id="@+id/stats_elevation" <LinearLayout
layout="@layout/stats_small_group_item" /> android:layout_width="match_parent"
<!-- Elevation gain --> android:layout_height="wrap_content">
<include
android:id="@+id/stats_elevation_gain" <include
layout="@layout/stats_small_group_item" /> android:id="@+id/stats_speed"
<!-- Elevation min --> layout="@layout/stats_small_item" />
<include
android:id="@+id/stats_elevation_min" <include
layout="@layout/stats_small_group_item" /> android:id="@+id/stats_average_speed"
<!-- Elevation max --> layout="@layout/stats_small_item" />
<include </LinearLayout>
android:id="@+id/stats_elevation_max" <!-- Max speed and average moving speed -->
layout="@layout/stats_small_group_item" /> <LinearLayout
</TableLayout> android:layout_width="match_parent"
</LinearLayout> android:layout_height="wrap_content">
<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_width="match_parent"
android:layout_height="wrap_content">
<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:id="@+id/stats_grade_elevation_separator"
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="@color/stats_separator" />
<LinearLayout
android:id="@+id/stats_grade_elevation_container"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
<!-- Grade -->
<LinearLayout style="@style/StatsSmallGroupContainer">
<!-- Grade label -->
<TextView
style="@style/StatsSmallLabel"
android:text="@string/stats_grade" />
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center">
<!-- 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
style="@style/StatsSmallLabel"
android:text="@string/stats_elevation" />
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center">
<!-- 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> </LinearLayout>
</LinearLayout>
</merge> </merge>
+61 -54
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,57 +13,65 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<merge xmlns:android="http://schemas.android.com/apk/res/android" > <merge xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:background="@color/track_controller_background" <LinearLayout
android:id="@+id/track_controller_container" android:id="@+id/track_controller_container"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:orientation="vertical"
android:paddingLeft="8dp"
android:paddingRight="8dp" >
<View
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="match_parent" />
<ImageButton
android:background="@android:color/transparent"
android:contentDescription="@string/image_record"
android:id="@+id/track_controller_record"
android:layout_height="0dp"
android:layout_weight="10"
android:layout_width="wrap_content" />
<RelativeLayout
android:layout_height="0dp"
android:layout_weight="6"
android:layout_width="match_parent" >
<TextView
android:id="@+id/track_controller_total_time"
android:layout_centerInParent="true"
android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:textColor="@android:color/white" android:layout_height="match_parent"
style="@style/TextSmall" /> android:background="@color/track_controller_background"
<TextView android:orientation="vertical"
android:id="@+id/track_controller_status" android:paddingLeft="8dp"
android:layout_above="@id/track_controller_total_time" android:paddingRight="8dp">
android:layout_centerHorizontal="true"
android:layout_height="wrap_content" <View
android:layout_width="wrap_content" android:layout_width="match_parent"
android:singleLine="true" android:layout_height="0dp"
style="@style/TextMicro" /> android:layout_weight="1" />
</RelativeLayout>
<ImageButton <ImageButton
android:background="@android:color/transparent" android:id="@+id/track_controller_record"
android:contentDescription="@string/image_stop" android:layout_width="wrap_content"
android:id="@+id/track_controller_stop" android:layout_height="0dp"
android:layout_height="0dp" android:layout_weight="10"
android:layout_weight="10" android:background="@android:color/transparent"
android:layout_width="match_parent" android:contentDescription="@string/image_record" />
android:src="@drawable/ic_button_stop_disabled" />
<View <RelativeLayout
android:layout_height="0dp" android:layout_width="match_parent"
android:layout_weight="1" android:layout_height="0dp"
android:layout_width="match_parent" /> android:layout_weight="6">
</LinearLayout>
<TextView
android:id="@+id/track_controller_total_time"
style="@style/TextSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:textColor="@android:color/white" />
<TextView
android:id="@+id/track_controller_status"
style="@style/TextMicro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/track_controller_total_time"
android:layout_centerHorizontal="true"
android:singleLine="true" />
</RelativeLayout>
<ImageButton
android:id="@+id/track_controller_stop"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="10"
android:background="@android:color/transparent"
android:contentDescription="@string/image_stop"
android:src="@drawable/ic_button_stop_disabled" />
<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
</merge> </merge>
+14 -12
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,15 +14,18 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:baselineAligned="false" android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_width="match_parent" >
<include layout="@layout/track_controller" />
<TabHost
android:id="@android:id/tabhost"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:baselineAligned="false">
android:layout_width="0dp" >
<include layout="@layout/track_details_tab" /> <include layout="@layout/track_controller" />
</TabHost>
<TabHost
android:id="@android:id/tabhost"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<include layout="@layout/track_details_tab" />
</TabHost>
</LinearLayout> </LinearLayout>
+76 -66
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,69 +14,80 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:baselineAligned="false" android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_width="match_parent" >
<include layout="@layout/track_controller" />
<ListView
android:id="@+id/track_list"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1.0" android:baselineAligned="false">
android:layout_width="0dp" />
<RelativeLayout <include layout="@layout/track_controller" />
android:id="@+id/track_list_empty_view"
android:layout_height="match_parent" <ListView
android:layout_weight="1.0" android:id="@+id/track_list"
android:layout_width="0dp" > android:layout_width="0dp"
<LinearLayout android:layout_height="match_parent"
android:id="@+id/track_list_arrow_long" android:layout_weight="1.0" />
android:layout_alignParentLeft="true"
android:layout_height="match_parent" <RelativeLayout
android:layout_width="wrap_content" android:id="@+id/track_list_empty_view"
android:orientation="vertical" android:layout_width="0dp"
android:paddingLeft="12dp" android:layout_height="match_parent"
android:paddingRight="16dp" > android:layout_weight="1.0">
<View
android:layout_height="0dp" <LinearLayout
android:layout_weight="1" android:id="@+id/track_list_arrow_long"
android:layout_width="match_parent" /> android:layout_width="wrap_content"
<ImageView android:layout_height="match_parent"
android:contentDescription="@string/image_arrow" android:layout_alignParentLeft="true"
android:layout_height="0dp" android:orientation="vertical"
android:layout_weight="10" android:paddingLeft="12dp"
android:layout_width="wrap_content" android:paddingRight="16dp">
android:src="@drawable/ic_arrow_long" />
<View <View
android:layout_height="0dp" android:layout_width="match_parent"
android:layout_weight="17" android:layout_height="0dp"
android:layout_width="match_parent" /> android:layout_weight="1" />
</LinearLayout>
<LinearLayout <ImageView
android:layout_height="match_parent" android:layout_width="wrap_content"
android:layout_toRightOf="@id/track_list_arrow_long" android:layout_height="0dp"
android:layout_width="match_parent" android:layout_weight="10"
android:orientation="vertical" > android:contentDescription="@string/image_arrow"
<View android:src="@drawable/ic_arrow_long" />
android:layout_height="0dp"
android:layout_weight="4" <View
android:layout_width="match_parent" /> android:layout_width="match_parent"
<LinearLayout android:layout_height="0dp"
android:layout_height="0dp" android:layout_weight="17" />
android:layout_weight="24" </LinearLayout>
android:layout_width="match_parent" >
<TextView <LinearLayout
android:layout_height="wrap_content" android:layout_width="match_parent"
android:layout_weight=".7" android:layout_height="match_parent"
android:layout_width="0dp" android:layout_toRightOf="@id/track_list_arrow_long"
android:text="@string/track_list_empty_message" android:orientation="vertical">
android:textColor="@color/list_empty_text"
style="@style/TextLarge" > <View
</TextView> android:layout_width="match_parent"
<View android:layout_height="0dp"
android:layout_height="match_parent" android:layout_weight="4" />
android:layout_weight=".3"
android:layout_width="0dp" /> <LinearLayout
</LinearLayout> android:layout_width="match_parent"
</LinearLayout> android:layout_height="0dp"
</RelativeLayout> android:layout_weight="24">
<TextView
style="@style/TextLarge"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight=".7"
android:text="@string/track_list_empty_message"
android:textColor="@color/list_empty_text"></TextView>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight=".3" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</LinearLayout> </LinearLayout>
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,24 +14,27 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/ScrollView" > style="@style/ScrollView">
<LinearLayout
android:layout_height="wrap_content" <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:paddingLeft="8dp" android:layout_height="wrap_content"
android:paddingRight="8dp" android:paddingLeft="8dp"
android:paddingTop="16dp" > android:paddingTop="16dp"
<AutoCompleteTextView android:paddingRight="8dp">
android:hint="@string/track_edit_activity_type_hint"
android:id="@+id/activity_type_preference_text_view" <AutoCompleteTextView
android:layout_height="match_parent" android:id="@+id/activity_type_preference_text_view"
android:layout_weight="1" style="@style/EditCategory"
android:layout_width="0dp" android:layout_width="0dp"
style="@style/EditCategory" /> android:layout_height="match_parent"
<Spinner android:layout_weight="1"
android:id="@+id/activity_type_preference_spinner" android:hint="@string/track_edit_activity_type_hint" />
android:layout_gravity="bottom"
android:layout_height="wrap_content" <Spinner
android:layout_width="wrap_content" /> android:id="@+id/activity_type_preference_spinner"
</LinearLayout> android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom" />
</LinearLayout>
</ScrollView> </ScrollView>
+18 -18
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,21 +14,22 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/chart_view_layout"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" > android:layout_height="match_parent"
</LinearLayout> android:orientation="vertical">
<ZoomControls
android:background="@android:color/white" <LinearLayout
android:gravity="right" android:id="@+id/chart_view_layout"
android:id="@+id/chart_zoom_controls" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_width="match_parent" android:layout_weight="1"
android:paddingRight="8dp" /> android:orientation="vertical"></LinearLayout>
<ZoomControls
android:id="@+id/chart_zoom_controls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/white"
android:gravity="right"
android:paddingRight="8dp" />
</LinearLayout> </LinearLayout>
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,36 +14,40 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:gravity="center_vertical" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:minHeight="?android:attr/listPreferredItemHeight"
android:paddingLeft="16dp"
android:paddingRight="16dp" >
<ImageView
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"
android:scaleType="fitCenter" />
<LinearLayout
android:gravity="center_vertical"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:gravity="center_vertical"
android:orientation="vertical" > android:minHeight="?android:attr/listPreferredItemHeight"
<TextView android:paddingLeft="16dp"
android:id="@+id/choose_activity_list_item_text1" android:paddingRight="16dp">
android:layout_height="wrap_content"
android:layout_width="wrap_content" <ImageView
android:maxLines="2" android:id="@+id/choose_activity_list_item_icon"
android:paddingLeft="16dp" android:layout_width="@android:dimen/app_icon_size"
style="@style/TextChooseActivity" /> android:layout_height="@android:dimen/app_icon_size"
<TextView android:contentDescription="@string/image_application"
android:id="@+id/choose_activity_list_item_text2" android:scaleType="fitCenter" />
android:layout_height="wrap_content"
android:layout_width="wrap_content" <LinearLayout
android:maxLines="2" android:layout_width="wrap_content"
android:paddingLeft="16dp" android:layout_height="wrap_content"
style="@style/TextChooseActivity" /> android:gravity="center_vertical"
</LinearLayout> android:orientation="vertical">
<TextView
android:id="@+id/choose_activity_list_item_text1"
style="@style/TextChooseActivity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="2"
android:paddingLeft="16dp" />
<TextView
android:id="@+id/choose_activity_list_item_text2"
style="@style/TextChooseActivity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="2"
android:paddingLeft="16dp" />
</LinearLayout>
</LinearLayout> </LinearLayout>
+13 -13
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,16 +14,17 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout 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: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:layout_width="match_parent"
android:numColumns="4" android:layout_height="wrap_content"
android:padding="4dp" android:orientation="vertical">
android:stretchMode="spacingWidth"
android:verticalSpacing="4dp" /> <GridView
android:id="@+id/choose_activity_type_grid_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:numColumns="4"
android:padding="4dp"
android:stretchMode="spacingWidth"
android:verticalSpacing="4dp" />
</LinearLayout> </LinearLayout>
+120 -113
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,120 +14,128 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<FrameLayout 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" >
<!-- 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_width="match_parent"
android:layout_marginBottom="4dp" android:layout_height="wrap_content">
android:scaleType="centerCrop" /> <!-- Photo -->
<FrameLayout
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<!-- A gradient on top of the text -->
<ImageView <ImageView
android:alpha=".6" android:id="@+id/list_item_photo"
android:contentDescription="@string/image_photo_marker" android:layout_width="match_parent"
android:id="@+id/list_item_text_gradient" android:layout_height="match_parent"
android:layout_height="match_parent" android:layout_marginBottom="4dp"
android:layout_width="match_parent" android:contentDescription="@string/image_photo_marker"
android:src="@drawable/text_gradient" /> android:scaleType="centerCrop" />
<!-- Table 1 -->
<TableLayout <FrameLayout
android:layout_height="wrap_content" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content">
android:minHeight="?android:attr/listPreferredItemHeight" <!-- A gradient on top of the text -->
android:paddingBottom="12dp"
android:paddingRight="12dp"
android:paddingTop="8dp"
android:shrinkColumns="1"
android:stretchColumns="1" >
<!-- Table 1: Row 1 -->
<TableRow>
<!-- Table 1: Row 1: Column 1: (icon) -->
<ImageView <ImageView
android:contentDescription="@string/image_track" android:id="@+id/list_item_text_gradient"
android:id="@+id/list_item_icon" android:layout_width="match_parent"
android:layout_gravity="center_vertical" android:layout_height="match_parent"
android:layout_height="wrap_content" android:alpha=".6"
android:layout_marginLeft="8dp" android:contentDescription="@string/image_photo_marker"
android:layout_marginRight="8dp" android:src="@drawable/text_gradient" />
android:layout_width="wrap_content" /> <!-- Table 1 -->
<!-- Table 1: Row 1: Column 2: (Table 2) -->
<TableLayout <TableLayout
android:layout_height="wrap_content" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:shrinkColumns="0" android:minHeight="?android:attr/listPreferredItemHeight"
android:stretchColumns="0" > android:paddingTop="8dp"
<TableRow> android:paddingRight="12dp"
<!-- Table 2: Row 1: Column 1: (name) --> android:paddingBottom="12dp"
<TextView android:shrinkColumns="1"
android:ellipsize="end" android:stretchColumns="1">
android:id="@+id/list_item_name" <!-- Table 1: Row 1 -->
android:layout_gravity="bottom" <TableRow>
android:layout_width="match_parent" <!-- Table 1: Row 1: Column 1: (icon) -->
android:singleLine="true" <ImageView
style="@style/TextMedium" /> android:id="@+id/list_item_icon"
<!-- Table 2: Row 1: Column 2: (date) --> android:layout_width="wrap_content"
<TextView android:layout_height="wrap_content"
android:id="@+id/list_item_date" android:layout_gravity="center_vertical"
style="@style/ListItemDate" /> android:layout_marginLeft="8dp"
</TableRow> android:layout_marginRight="8dp"
<TableRow> android:contentDescription="@string/image_track" />
<!-- Need to match the style set in ListItemUtils.setListItem --> <!-- Table 1: Row 1: Column 2: (Table 2) -->
<!-- Table 2: Row 2: Column 1: (shared owner, total time, total distance, and marker count) --> <TableLayout
<LinearLayout android:layout_width="match_parent"
android:layout_gravity="bottom" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:shrinkColumns="0"
android:layout_width="match_parent" > android:stretchColumns="0">
<TextView
android:ellipsize="end" <TableRow>
android:id="@+id/list_item_time_distance" <!-- Table 2: Row 1: Column 1: (name) -->
android:layout_gravity="bottom" <TextView
android:singleLine="true" android:id="@+id/list_item_name"
style="@style/TextSmall" /> style="@style/TextMedium"
<ImageView android:layout_width="match_parent"
android:contentDescription="@string/image_marker_count" android:layout_gravity="bottom"
android:id="@+id/list_item_marker_count_icon" android:ellipsize="end"
android:layout_gravity="bottom" android:singleLine="true" />
android:layout_height="wrap_content" <!-- Table 2: Row 1: Column 2: (date) -->
android:layout_marginBottom="1dp" <TextView
android:layout_marginLeft="2dp" android:id="@+id/list_item_date"
android:layout_marginRight="2dp" style="@style/ListItemDate" />
android:layout_width="wrap_content" </TableRow>
android:scaleType="centerInside"
android:src="@drawable/ic_menu_insert_marker" /> <TableRow>
<TextView <!-- Need to match the style set in ListItemUtils.setListItem -->
android:ellipsize="end" <!-- Table 2: Row 2: Column 1: (shared owner, total time, total distance, and marker count) -->
android:id="@+id/list_item_marker_count" <LinearLayout
android:layout_gravity="bottom" android:layout_width="match_parent"
android:singleLine="true" android:layout_height="wrap_content"
style="@style/TextSmall" /> android:layout_gravity="bottom">
</LinearLayout>
<!-- Table 2: Row 2: Column 2: (time) --> <TextView
<TextView android:id="@+id/list_item_time_distance"
android:id="@+id/list_item_time" style="@style/TextSmall"
style="@style/ListItemDate" /> android:layout_gravity="bottom"
</TableRow> android:ellipsize="end"
android:singleLine="true" />
<ImageView
android:id="@+id/list_item_marker_count_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:layout_marginBottom="1dp"
android:contentDescription="@string/image_marker_count"
android:scaleType="centerInside"
android:src="@drawable/ic_menu_insert_marker" />
<TextView
android:id="@+id/list_item_marker_count"
style="@style/TextSmall"
android:layout_gravity="bottom"
android:ellipsize="end"
android:singleLine="true" />
</LinearLayout>
<!-- Table 2: Row 2: Column 2: (time) -->
<TextView
android:id="@+id/list_item_time"
style="@style/ListItemDate" />
</TableRow>
</TableLayout>
</TableRow>
<TableRow>
<!-- Table 1: Row 2: (category and description) -->
<TextView
android:id="@+id/list_item_category_description"
style="@style/TextSmall"
android:layout_column="1"
android:ellipsize="end"
android:maxLines="2"
android:singleLine="false" />
</TableRow>
</TableLayout> </TableLayout>
</TableRow> </FrameLayout>
<TableRow>
<!-- Table 1: Row 2: (category and description) --> <View
<TextView style="@style/ListItem"
android:ellipsize="end" android:layout_width="match_parent"
android:id="@+id/list_item_category_description" android:layout_height="match_parent" />
android:layout_column="1"
android:maxLines="2"
android:singleLine="false"
style="@style/TextSmall" />
</TableRow>
</TableLayout>
</FrameLayout>
<View
android:layout_height="match_parent"
android:layout_width="match_parent"
style="@style/ListItem" />
</FrameLayout> </FrameLayout>
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,10 +14,11 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_width="match_parent"
android:layout_width="match_parent" > android:layout_height="match_parent">
<androidx.viewpager.widget.ViewPager
android:id="@+id/maker_detail_activity_view_pager" <androidx.viewpager.widget.ViewPager
android:layout_height="match_parent" android:id="@+id/maker_detail_activity_view_pager"
android:layout_width="match_parent" /> android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout> </LinearLayout>
+82 -69
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,74 +14,88 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_width="match_parent"
android:layout_width="match_parent" > android:layout_height="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 <FrameLayout
android:layout_height="wrap_content" android:id="@+id/marker_detail_waypoint"
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:layout_width="match_parent"
android:src="@drawable/text_gradient" /> android:layout_height="match_parent">
<LinearLayout
android:id="@+id/marker_detail_waypoint_info" <ImageView
android:layout_height="wrap_content" android:id="@+id/marker_detail_waypoint_photo"
android:layout_marginBottom="80dp" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:background="@android:color/black"
android:padding="8dp" > android:contentDescription="@string/image_photo_marker"
<TextView android:scaleType="fitCenter" />
android:id="@+id/marker_detail_waypoint_name"
android:paddingTop="8dp" <FrameLayout
style="@style/TextMedium" /> android:layout_width="match_parent"
<TextView android:layout_height="wrap_content">
android:id="@+id/marker_detail_waypoint_category" <!-- A gradient on top of the text -->
style="@style/TextSmall" /> <ImageView
<TextView android:id="@+id/marker_detail_waypoint_text_gradient"
android:id="@+id/marker_detail_waypoint_description" android:layout_width="match_parent"
style="@style/TextSmall" /> android:layout_height="match_parent"
<TextView android:alpha=".6"
android:id="@+id/marker_detail_waypoint_location" android:contentDescription="@string/image_photo_marker"
style="@style/TextSmall" /> android:src="@drawable/text_gradient" />
</LinearLayout>
<LinearLayout
android:id="@+id/marker_detail_waypoint_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="80dp"
android:orientation="vertical"
android:padding="8dp">
<TextView
android:id="@+id/marker_detail_waypoint_name"
style="@style/TextMedium"
android:paddingTop="8dp" />
<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> </FrameLayout>
</FrameLayout>
<ScrollView <ScrollView
android:id="@+id/marker_detail_statistics" android:id="@+id/marker_detail_statistics"
style="@style/StatsScrollView" > style="@style/StatsScrollView">
<LinearLayout
android:layout_height="wrap_content" <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:layout_height="wrap_content"
android:padding="8dp" > android:orientation="vertical"
<TextView android:padding="8dp">
android:id="@+id/marker_detail_statistics_name"
android:paddingTop="8dp" <TextView
style="@style/TextMedium" /> android:id="@+id/marker_detail_statistics_name"
<TextView style="@style/TextMedium"
android:id="@+id/marker_detail_statistics_location" android:paddingTop="8dp" />
style="@style/TextSmall" />
<TextView <TextView
android:paddingBottom="6dp" android:id="@+id/marker_detail_statistics_location"
android:paddingTop="4dp" style="@style/TextSmall" />
android:text="@string/marker_detail_statistics_title"
style="@style/TextSmall" /> <TextView
<include layout="@layout/stats_content" /> style="@style/TextSmall"
</LinearLayout> android:paddingTop="4dp"
</ScrollView> android:paddingBottom="6dp"
android:text="@string/marker_detail_statistics_title" />
<include layout="@layout/stats_content" />
</LinearLayout>
</ScrollView>
</FrameLayout> </FrameLayout>
+73 -60
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,63 +14,77 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="match_parent"
android:orientation="vertical" > android:orientation="vertical">
<ScrollView style="@style/ScrollView.WithBottomButtons" >
<LinearLayout <ScrollView style="@style/ScrollView.WithBottomButtons">
android:layout_height="wrap_content"
android:layout_width="match_parent" <LinearLayout
android:orientation="vertical" android:layout_width="match_parent"
android:padding="8dp" > android:layout_height="wrap_content"
<TextView android:orientation="vertical"
android:text="@string/generic_name" android:padding="8dp">
style="@style/EditLabel" />
<LinearLayout <TextView
android:id="@+id/marker_edit_statistics_section" style="@style/EditLabel"
android:layout_height="wrap_content" android:text="@string/generic_name" />
android:layout_width="match_parent"
android:orientation="vertical" > <LinearLayout
<EditText android:id="@+id/marker_edit_statistics_section"
android:drawableLeft="@drawable/ic_marker_yellow_pushpin" android:layout_width="match_parent"
android:hint="@string/generic_name" android:layout_height="wrap_content"
android:id="@+id/marker_edit_statistics_name" android:orientation="vertical">
android:imeOptions="actionDone"
style="@style/EditNameMarker" /> <EditText
</LinearLayout> android:id="@+id/marker_edit_statistics_name"
<LinearLayout style="@style/EditNameMarker"
android:id="@+id/marker_edit_waypoint_section" android:drawableLeft="@drawable/ic_marker_yellow_pushpin"
android:layout_height="wrap_content" android:hint="@string/generic_name"
android:layout_width="match_parent" android:imeOptions="actionDone" />
android:orientation="vertical" > </LinearLayout>
<EditText
android:drawableLeft="@drawable/ic_marker_blue_pushpin" <LinearLayout
android:hint="@string/generic_name" android:id="@+id/marker_edit_waypoint_section"
android:id="@+id/marker_edit_waypoint_name" android:layout_width="match_parent"
android:imeOptions="actionNext" android:layout_height="wrap_content"
style="@style/EditNameMarker" /> android:orientation="vertical">
<TextView
android:text="@string/marker_edit_marker_type" <EditText
style="@style/EditLabel.WithPaddingTop" /> android:id="@+id/marker_edit_waypoint_name"
<AutoCompleteTextView style="@style/EditNameMarker"
android:hint="@string/marker_edit_marker_type_hint" android:drawableLeft="@drawable/ic_marker_blue_pushpin"
android:id="@+id/marker_edit_waypoint_marker_type" android:hint="@string/generic_name"
android:imeOptions="actionNext" android:imeOptions="actionNext" />
android:layout_width="match_parent"
style="@style/EditCategory" /> <TextView
<TextView style="@style/EditLabel.WithPaddingTop"
android:text="@string/generic_description" android:text="@string/marker_edit_marker_type" />
style="@style/EditLabel.WithPaddingTop" />
<EditText <AutoCompleteTextView
android:hint="@string/generic_description" android:id="@+id/marker_edit_waypoint_marker_type"
android:id="@+id/marker_edit_waypoint_description" style="@style/EditCategory"
android:imeOptions="actionDone" android:layout_width="match_parent"
style="@style/EditDescription" /> android:hint="@string/marker_edit_marker_type_hint"
</LinearLayout> android:imeOptions="actionNext" />
<TextView
style="@style/EditLabel.WithPaddingTop"
android:text="@string/generic_description" />
<EditText
android:id="@+id/marker_edit_waypoint_description"
style="@style/EditDescription"
android:hint="@string/generic_description"
android:imeOptions="actionDone" />
</LinearLayout>
</LinearLayout>
</ScrollView>
<View style="@style/BottomButtonDivider" />
<LinearLayout style="@style/BottomButtonBar">
<include layout="@layout/marker_edit_buttons" />
</LinearLayout> </LinearLayout>
</ScrollView>
<View style="@style/BottomButtonDivider" />
<LinearLayout style="@style/BottomButtonBar" >
<include layout="@layout/marker_edit_buttons" />
</LinearLayout>
</LinearLayout> </LinearLayout>
+13 -13
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,15 +13,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<merge xmlns:android="http://schemas.android.com/apk/res/android" > <merge xmlns:android="http://schemas.android.com/apk/res/android">
<!-- In v14, postive button on the right. --> <!-- In v14, postive button on the right. -->
<Button <Button
android:id="@+id/marker_edit_cancel" android:id="@+id/marker_edit_cancel"
android:layout_gravity="left" style="@style/BottomButton"
android:text="@string/generic_cancel" android:layout_gravity="left"
style="@style/BottomButton" /> android:text="@string/generic_cancel" />
<Button
android:id="@+id/marker_edit_done" <Button
android:layout_gravity="right" android:id="@+id/marker_edit_done"
style="@style/BottomButton" /> style="@style/BottomButton"
android:layout_gravity="right" />
</merge> </merge>
+13 -13
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,15 +14,16 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<merge xmlns:android="http://schemas.android.com/apk/res/android" <merge xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_width="match_parent"
android:layout_width="match_parent" > android:layout_height="match_parent">
<ListView
android:id="@+id/marker_list" <ListView
android:layout_height="match_parent" android:id="@+id/marker_list"
android:layout_width="match_parent" /> android:layout_width="match_parent"
<TextView android:layout_height="match_parent" />
android:id="@+id/marker_list_empty"
android:text="@string/marker_list_empty_message" <TextView
style="@style/ListEmptyTextView" > android:id="@+id/marker_list_empty"
</TextView> style="@style/ListEmptyTextView"
android:text="@string/marker_list_empty_message"></TextView>
</merge> </merge>
+13 -13
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,15 +14,16 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<merge xmlns:android="http://schemas.android.com/apk/res/android" <merge xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_width="match_parent"
android:layout_width="match_parent" > android:layout_height="match_parent">
<ListView
android:id="@+id/search_list" <ListView
android:layout_height="match_parent" android:id="@+id/search_list"
android:layout_width="match_parent" /> android:layout_width="match_parent"
<TextView android:layout_height="match_parent" />
android:id="@+id/search_list_empty"
android:text="@string/search_list_empty_message" <TextView
style="@style/ListEmptyTextView" > android:id="@+id/search_list_empty"
</TextView> style="@style/ListEmptyTextView"
android:text="@string/search_list_empty_message"></TextView>
</merge> </merge>
+57 -50
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,52 +14,60 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/ScrollView" > style="@style/ScrollView">
<LinearLayout
android:layout_height="wrap_content" <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:layout_height="wrap_content"
android:padding="8dp" > android:orientation="vertical"
<TextView android:padding="8dp">
android:text="@string/menu_sensor_state"
style="@style/TextMedium" /> <TextView
<TextView style="@style/TextMedium"
android:id="@+id/sensor_state" android:text="@string/menu_sensor_state" />
style="@style/SensorStateValue" />
<!-- Last sensor time --> <TextView
<TextView android:id="@+id/sensor_state"
android:text="@string/sensor_state_last_sensor_time" style="@style/SensorStateValue" />
style="@style/TextMedium" /> <!-- Last sensor time -->
<TextView <TextView
android:id="@+id/sensor_state_last_sensor_time" style="@style/TextMedium"
style="@style/SensorStateValue" /> android:text="@string/sensor_state_last_sensor_time" />
<!-- Heart rate -->
<TextView <TextView
android:text="@string/sensor_state_heart_rate" android:id="@+id/sensor_state_last_sensor_time"
style="@style/TextMedium" /> style="@style/SensorStateValue" />
<TextView <!-- Heart rate -->
android:id="@+id/sensor_state_heart_rate" <TextView
style="@style/SensorStateValue" /> style="@style/TextMedium"
<!-- Cadence --> android:text="@string/sensor_state_heart_rate" />
<TextView
android:text="@string/sensor_state_cadence" <TextView
style="@style/TextMedium" /> android:id="@+id/sensor_state_heart_rate"
<TextView style="@style/SensorStateValue" />
android:id="@+id/sensor_state_cadence" <!-- Cadence -->
style="@style/SensorStateValue" /> <TextView
<!-- Power --> style="@style/TextMedium"
<TextView android:text="@string/sensor_state_cadence" />
android:text="@string/sensor_state_power"
style="@style/TextMedium" /> <TextView
<TextView android:id="@+id/sensor_state_cadence"
android:id="@+id/sensor_state_power" style="@style/SensorStateValue" />
style="@style/SensorStateValue" /> <!-- Power -->
<!-- Battery level --> <TextView
<TextView style="@style/TextMedium"
android:text="@string/sensor_state_battery" android:text="@string/sensor_state_power" />
style="@style/TextMedium" />
<TextView <TextView
android:id="@+id/sensor_state_battery" android:id="@+id/sensor_state_power"
style="@style/SensorStateValue" /> style="@style/SensorStateValue" />
</LinearLayout> <!-- Battery level -->
<TextView
style="@style/TextMedium"
android:text="@string/sensor_state_battery" />
<TextView
android:id="@+id/sensor_state_battery"
style="@style/SensorStateValue" />
</LinearLayout>
</ScrollView> </ScrollView>
+10 -9
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,11 +14,13 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/StatsScrollView" > style="@style/StatsScrollView">
<LinearLayout
android:layout_height="wrap_content" <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical"> android:layout_height="wrap_content"
<include layout="@layout/stats_content" /> android:orientation="vertical">
</LinearLayout>
<include layout="@layout/stats_content" />
</LinearLayout>
</ScrollView> </ScrollView>
+16 -16
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,18 +14,19 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/StatsLargeItemContainer" > style="@style/StatsLargeItemContainer">
<!-- Label --> <!-- Label -->
<TextView <TextView
android:id="@+id/stats_label" android:id="@+id/stats_label"
android:text="@string/track_edit_activity_type_hint" style="@style/StatsLargeLabel"
style="@style/StatsLargeLabel" /> android:text="@string/track_edit_activity_type_hint" />
<!-- Value container --> <!-- Value container -->
<LinearLayout style="@style/StatsLargeValueContainer" > <LinearLayout style="@style/StatsLargeValueContainer">
<Spinner
android:id="@+id/stats_activity_type_icon" <Spinner
android:layout_height="wrap_content" android:id="@+id/stats_activity_type_icon"
android:layout_marginLeft="4dp" android:layout_width="wrap_content"
android:layout_width="wrap_content" /> android:layout_height="wrap_content"
</LinearLayout> android:layout_marginLeft="4dp" />
</LinearLayout>
</LinearLayout> </LinearLayout>
+153 -141
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,151 +13,164 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<merge xmlns:android="http://schemas.android.com/apk/res/android" > <merge xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Distance and activity type --> <!-- Distance and activity type -->
<LinearLayout <LinearLayout
android:layout_height="wrap_content" android:layout_width="match_parent"
android:layout_width="match_parent" > android:layout_height="wrap_content">
<include
android:id="@+id/stats_distance"
layout="@layout/stats_large_item" />
<include
android:id="@+id/stats_calorie"
layout="@layout/stats_activity_type" />
</LinearLayout>
<!-- Total time and moving time -->
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<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" />
<!-- 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>
<!-- Horizontal line -->
<View
android:id="@+id/stats_grade_elevation_separator"
style="@style/StatsHorizontalLine" />
<LinearLayout
android:id="@+id/stats_grade_elevation_container"
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<!-- 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 <include
android:id="@+id/stats_grade_min" android:id="@+id/stats_distance"
layout="@layout/stats_small_group_item" /> layout="@layout/stats_large_item" />
<!-- Grade max -->
<include <include
android:id="@+id/stats_grade_max" android:id="@+id/stats_calorie"
layout="@layout/stats_small_group_item" /> layout="@layout/stats_activity_type" />
</TableLayout>
</LinearLayout> </LinearLayout>
<!-- Elevation --> <!-- Total time and moving time -->
<LinearLayout style="@style/StatsSmallGroupContainer" > <LinearLayout
<!-- Elevation label --> android:layout_width="match_parent"
<TextView android:layout_height="wrap_content">
android:text="@string/stats_elevation"
style="@style/StatsSmallLabel" /> <include
<TableLayout android:id="@+id/stats_total_time"
android:layout_gravity="center" layout="@layout/stats_large_item" />
android:layout_height="wrap_content"
android:layout_width="wrap_content" > <include
android:id="@+id/stats_moving_time"
layout="@layout/stats_large_item" />
</LinearLayout>
<!-- Horizontal line -->
<View style="@style/StatsHorizontalLine" />
<!-- Speed and average speed -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<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_width="match_parent"
android:layout_height="wrap_content">
<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>
<!-- Horizontal line -->
<View
android:id="@+id/stats_grade_elevation_separator"
style="@style/StatsHorizontalLine" />
<LinearLayout
android:id="@+id/stats_grade_elevation_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- Grade -->
<LinearLayout style="@style/StatsSmallGroupContainer">
<!-- Grade label -->
<TextView
style="@style/StatsSmallLabel"
android:text="@string/stats_grade" />
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center">
<!-- 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 --> <!-- Elevation -->
<include <LinearLayout style="@style/StatsSmallGroupContainer">
android:id="@+id/stats_elevation" <!-- Elevation label -->
layout="@layout/stats_small_group_item" /> <TextView
<!-- Elevation gain --> style="@style/StatsSmallLabel"
<include android:text="@string/stats_elevation" />
android:id="@+id/stats_elevation_gain"
layout="@layout/stats_small_group_item" /> <TableLayout
<!-- Elevation min --> android:layout_width="wrap_content"
<include android:layout_height="wrap_content"
android:id="@+id/stats_elevation_min" android:layout_gravity="center">
layout="@layout/stats_small_group_item" /> <!-- Elevation -->
<!-- Elevation max --> <include
<include android:id="@+id/stats_elevation"
android:id="@+id/stats_elevation_max" layout="@layout/stats_small_group_item" />
layout="@layout/stats_small_group_item" /> <!-- Elevation gain -->
</TableLayout> <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>
</LinearLayout> <!-- Horizontal line -->
<!-- Horizontal line --> <View
<View android:id="@+id/stats_coordinate_separator"
android:id="@+id/stats_coordinate_separator" style="@style/StatsHorizontalLine" />
style="@style/StatsHorizontalLine" /> <!-- Latitude and longitude -->
<!-- Latitude and longitude --> <LinearLayout
<LinearLayout android:id="@+id/stats_coordinate_container"
android:id="@+id/stats_coordinate_container" android:layout_width="match_parent"
android:layout_height="wrap_content" 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>
<!-- Sensor data: heart rate-->
<View
android:id="@+id/stats_sensor_separator"
style="@style/StatsHorizontalLine" />
<LinearLayout
android:id="@+id/stats_sensor_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include
android:id="@+id/stats_sensor_heart_rate_value"
layout="@layout/stats_large_item" />
<LinearLayout style="@style/StatsSmallGroupContainer">
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center">
<include <include
android:id="@+id/stats_sensor_heart_rate_sensor" android:id="@+id/stats_latitude"
layout="@layout/stats_tiny_item" /> layout="@layout/stats_small_item" />
</TableLayout>
<include
android:id="@+id/stats_longitude"
layout="@layout/stats_small_item" />
</LinearLayout>
<!-- Sensor data: heart rate-->
<View
android:id="@+id/stats_sensor_separator"
style="@style/StatsHorizontalLine" />
<LinearLayout
android:id="@+id/stats_sensor_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include
android:id="@+id/stats_sensor_heart_rate_value"
layout="@layout/stats_large_item" />
<LinearLayout style="@style/StatsSmallGroupContainer">
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center">
<include
android:id="@+id/stats_sensor_heart_rate_sensor"
layout="@layout/stats_tiny_item" />
</TableLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout>
</merge> </merge>
+16 -17
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,20 +14,20 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/StatsLargeItemContainer" > style="@style/StatsLargeItemContainer">
<!-- Label --> <!-- Label -->
<TextView
android:id="@+id/stats_label"
style="@style/StatsLargeLabel" />
<!-- Value container -->
<LinearLayout style="@style/StatsLargeValueContainer" >
<!-- Value -->
<TextView <TextView
android:id="@+id/stats_value" android:id="@+id/stats_label"
style="@style/StatsLargeValue" /> style="@style/StatsLargeLabel" />
<!-- Unit --> <!-- Value container -->
<TextView <LinearLayout style="@style/StatsLargeValueContainer">
android:id="@+id/stats_unit" <!-- Value -->
style="@style/StatsUnit" /> <TextView
</LinearLayout> android:id="@+id/stats_value"
style="@style/StatsLargeValue" />
<!-- Unit -->
<TextView
android:id="@+id/stats_unit"
style="@style/StatsUnit" />
</LinearLayout>
</LinearLayout> </LinearLayout>
+31 -31
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,33 +14,34 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<TableRow xmlns:android="http://schemas.android.com/apk/res/android" <TableRow xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content" android:layout_width="wrap_content"
android:layout_width="wrap_content" > android:layout_height="wrap_content">
<!-- Value container --> <!-- Value container -->
<LinearLayout <LinearLayout
android:layout_gravity="right|bottom" style="@style/StatsSmallValueContainer"
style="@style/StatsSmallValueContainer" > android:layout_gravity="right|bottom">
<!-- Value --> <!-- Value -->
<TextView <TextView
android:id="@+id/stats_value" android:id="@+id/stats_value"
style="@style/StatsSmallValue" /> style="@style/StatsSmallValue" />
<!-- Unit --> <!-- Unit -->
<TextView <TextView
android:id="@+id/stats_unit" android:id="@+id/stats_unit"
style="@style/StatsUnit" /> style="@style/StatsUnit" />
</LinearLayout> </LinearLayout>
<!-- Label container --> <!-- Label container -->
<LinearLayout <LinearLayout
android:layout_gravity="left|bottom" style="@style/StatsSmallValueContainer"
style="@style/StatsSmallValueContainer" > android:layout_gravity="left|bottom">
<TextView
android:visibility="invisible" <TextView
style="@style/StatsSmallValue" /> style="@style/StatsSmallValue"
<!-- Label --> android:visibility="invisible" />
<TextView <!-- Label -->
android:id="@+id/stats_label" <TextView
android:layout_gravity="bottom" android:id="@+id/stats_label"
android:paddingLeft="8dp" style="@style/StatsSmallLabel"
style="@style/StatsSmallLabel" /> android:layout_gravity="bottom"
</LinearLayout> android:paddingLeft="8dp" />
</LinearLayout>
</TableRow> </TableRow>
+16 -17
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,20 +14,20 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/StatsSmallItemContainer" > style="@style/StatsSmallItemContainer">
<!-- Label --> <!-- Label -->
<TextView
android:id="@+id/stats_label"
style="@style/StatsSmallLabel" />
<!-- Value container -->
<LinearLayout style="@style/StatsSmallValueContainer" >
<!-- Value -->
<TextView <TextView
android:id="@+id/stats_value" android:id="@+id/stats_label"
style="@style/StatsSmallValue" /> style="@style/StatsSmallLabel" />
<!-- Unit --> <!-- Value container -->
<TextView <LinearLayout style="@style/StatsSmallValueContainer">
android:id="@+id/stats_unit" <!-- Value -->
style="@style/StatsUnit" /> <TextView
</LinearLayout> android:id="@+id/stats_value"
style="@style/StatsSmallValue" />
<!-- Unit -->
<TextView
android:id="@+id/stats_unit"
style="@style/StatsUnit" />
</LinearLayout>
</LinearLayout> </LinearLayout>
+16 -17
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,20 +14,20 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/StatsSmallItemContainer" > style="@style/StatsSmallItemContainer">
<!-- Label --> <!-- Label -->
<TextView
android:id="@+id/stats_label"
style="@style/StatsSmallLabel" />
<!-- Value container -->
<LinearLayout style="@style/StatsSmallValueContainer" >
<!-- Value -->
<TextView <TextView
android:id="@+id/stats_value" android:id="@+id/stats_label"
style="@style/StatsTinyValue" /> style="@style/StatsSmallLabel" />
<!-- Unit --> <!-- Value container -->
<TextView <LinearLayout style="@style/StatsSmallValueContainer">
android:id="@+id/stats_unit" <!-- Value -->
style="@style/StatsUnit" /> <TextView
</LinearLayout> android:id="@+id/stats_value"
style="@style/StatsTinyValue" />
<!-- Unit -->
<TextView
android:id="@+id/stats_unit"
style="@style/StatsUnit" />
</LinearLayout>
</LinearLayout> </LinearLayout>
+61 -54
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,57 +13,65 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<merge xmlns:android="http://schemas.android.com/apk/res/android" > <merge xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:background="@color/track_controller_background" <LinearLayout
android:id="@+id/track_controller_container" android:id="@+id/track_controller_container"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:layout_width="match_parent"
android:paddingBottom="8dp"
android:paddingTop="8dp" >
<View
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_width="0dp" />
<ImageButton
android:background="@android:color/transparent"
android:contentDescription="@string/image_record"
android:id="@+id/track_controller_record"
android:layout_height="wrap_content"
android:layout_weight="10"
android:layout_width="0dp" />
<RelativeLayout
android:layout_height="match_parent"
android:layout_weight="6"
android:layout_width="0dp" >
<TextView
android:id="@+id/track_controller_total_time"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:background="@color/track_controller_background"
android:textColor="@android:color/white" android:paddingTop="8dp"
style="@style/TextSmall" /> android:paddingBottom="8dp">
<TextView
android:id="@+id/track_controller_status" <View
android:layout_above="@id/track_controller_total_time" android:layout_width="0dp"
android:layout_alignParentLeft="true" android:layout_height="match_parent"
android:layout_height="wrap_content" android:layout_weight="1" />
android:layout_width="wrap_content"
android:singleLine="true" <ImageButton
style="@style/TextMicro" /> android:id="@+id/track_controller_record"
</RelativeLayout> android:layout_width="0dp"
<ImageButton android:layout_height="wrap_content"
android:background="@android:color/transparent" android:layout_weight="10"
android:contentDescription="@string/image_stop" android:background="@android:color/transparent"
android:id="@+id/track_controller_stop" android:contentDescription="@string/image_record" />
android:layout_height="wrap_content"
android:layout_weight="10" <RelativeLayout
android:layout_width="0dp" android:layout_width="0dp"
android:src="@drawable/ic_button_stop_disabled" /> android:layout_height="match_parent"
<View android:layout_weight="6">
android:layout_height="match_parent"
android:layout_weight="1" <TextView
android:layout_width="0dp" /> android:id="@+id/track_controller_total_time"
</LinearLayout> style="@style/TextSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:textColor="@android:color/white" />
<TextView
android:id="@+id/track_controller_status"
style="@style/TextMicro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/track_controller_total_time"
android:layout_alignParentLeft="true"
android:singleLine="true" />
</RelativeLayout>
<ImageButton
android:id="@+id/track_controller_stop"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
android:background="@android:color/transparent"
android:contentDescription="@string/image_stop"
android:src="@drawable/ic_button_stop_disabled" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
</LinearLayout>
</merge> </merge>
+15 -13
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,15 +14,18 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="match_parent"
android:orientation="vertical" > android:orientation="vertical">
<TabHost
android:id="@android:id/tabhost" <TabHost
android:layout_height="0dp" android:id="@android:id/tabhost"
android:layout_weight="1" android:layout_width="match_parent"
android:layout_width="match_parent" > android:layout_height="0dp"
<include layout="@layout/track_details_tab" /> android:layout_weight="1">
</TabHost>
<include layout="@layout/track_controller" /> <include layout="@layout/track_details_tab" />
</TabHost>
<include layout="@layout/track_controller" />
</LinearLayout> </LinearLayout>
+26 -23
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,25 +13,29 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<merge xmlns:android="http://schemas.android.com/apk/res/android" > <merge xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:layout_height="match_parent" <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" > android:layout_height="match_parent"
<TabWidget android:orientation="vertical">
android:id="@android:id/tabs"
android:layout_height="wrap_content" <TabWidget
android:layout_weight="0" android:id="@android:id/tabs"
android:layout_width="match_parent" /> android:layout_width="match_parent"
<FrameLayout android:layout_height="wrap_content"
android:id="@android:id/tabcontent" android:layout_weight="0" />
android:layout_height="0dp"
android:layout_weight="0" <FrameLayout
android:layout_width="0dp" /> android:id="@android:id/tabcontent"
<androidx.viewpager.widget.ViewPager android:layout_width="0dp"
android:id="@+id/pager" android:layout_height="0dp"
android:layout_height="0dp" android:layout_weight="0" />
android:layout_weight="1"
android:layout_width="match_parent" /> <androidx.viewpager.widget.ViewPager
</LinearLayout> android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
</merge> </merge>
+65 -53
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,56 +14,69 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="match_parent"
android:orientation="vertical" > android:orientation="vertical">
<ScrollView style="@style/ScrollView.WithBottomButtons" >
<LinearLayout <ScrollView style="@style/ScrollView.WithBottomButtons">
android:layout_height="wrap_content"
android:layout_width="match_parent" <LinearLayout
android:orientation="vertical" android:layout_width="match_parent"
android:padding="8dp" > android:layout_height="wrap_content"
<TextView android:orientation="vertical"
android:text="@string/generic_name" android:padding="8dp">
style="@style/EditLabel" />
<EditText <TextView
android:hint="@string/generic_name" style="@style/EditLabel"
android:id="@+id/track_edit_name" android:text="@string/generic_name" />
android:imeOptions="actionNext"
style="@style/EditNameTrack" /> <EditText
<TextView android:id="@+id/track_edit_name"
android:id="@+id/track_edit_activity_type_label" style="@style/EditNameTrack"
android:text="@string/track_edit_activity_type" android:hint="@string/generic_name"
style="@style/EditLabel.WithPaddingTop" /> android:imeOptions="actionNext" />
<LinearLayout
android:layout_height="wrap_content" <TextView
android:layout_width="match_parent" > android:id="@+id/track_edit_activity_type_label"
<AutoCompleteTextView style="@style/EditLabel.WithPaddingTop"
android:hint="@string/track_edit_activity_type_hint" android:text="@string/track_edit_activity_type" />
android:id="@+id/track_edit_activity_type"
android:imeOptions="actionNext" <LinearLayout
android:layout_height="match_parent" android:layout_width="match_parent"
android:layout_weight="1" android:layout_height="wrap_content">
android:layout_width="0dp"
style="@style/EditCategory" /> <AutoCompleteTextView
<Spinner android:id="@+id/track_edit_activity_type"
android:id="@+id/track_edit_activity_type_icon" style="@style/EditCategory"
android:layout_gravity="bottom" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_width="wrap_content" /> android:layout_weight="1"
</LinearLayout> android:hint="@string/track_edit_activity_type_hint"
<TextView android:imeOptions="actionNext" />
android:text="@string/generic_description"
style="@style/EditLabel.WithPaddingTop" /> <Spinner
<EditText android:id="@+id/track_edit_activity_type_icon"
android:hint="@string/generic_description" android:layout_width="wrap_content"
android:id="@+id/track_edit_description" android:layout_height="wrap_content"
android:imeOptions="actionDone" android:layout_gravity="bottom" />
style="@style/EditDescription" /> </LinearLayout>
<TextView
style="@style/EditLabel.WithPaddingTop"
android:text="@string/generic_description" />
<EditText
android:id="@+id/track_edit_description"
style="@style/EditDescription"
android:hint="@string/generic_description"
android:imeOptions="actionDone" />
</LinearLayout>
</ScrollView>
<View style="@style/BottomButtonDivider" />
<LinearLayout style="@style/BottomButtonBar">
<include layout="@layout/track_edit_buttons" />
</LinearLayout> </LinearLayout>
</ScrollView>
<View style="@style/BottomButtonDivider" />
<LinearLayout style="@style/BottomButtonBar" >
<include layout="@layout/track_edit_buttons" />
</LinearLayout>
</LinearLayout> </LinearLayout>
+14 -14
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,16 +13,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<merge xmlns:android="http://schemas.android.com/apk/res/android" > <merge xmlns:android="http://schemas.android.com/apk/res/android">
<!-- In v14, postive button on the right. --> <!-- In v14, postive button on the right. -->
<Button <Button
android:id="@+id/track_edit_cancel" android:id="@+id/track_edit_cancel"
android:layout_gravity="left" style="@style/BottomButton"
android:text="@string/generic_cancel" android:layout_gravity="left"
style="@style/BottomButton" /> android:text="@string/generic_cancel" />
<Button
android:id="@+id/track_edit_save" <Button
android:layout_gravity="right" android:id="@+id/track_edit_save"
android:text="@string/generic_save" style="@style/BottomButton"
style="@style/BottomButton" /> android:layout_gravity="right"
android:text="@string/generic_save" />
</merge> </merge>
+70 -61
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,63 +14,73 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="match_parent"
android:orientation="vertical" > android:orientation="vertical">
<ListView
android:id="@+id/track_list" <ListView
android:layout_height="0dp" android:id="@+id/track_list"
android:layout_weight="1.0" android:layout_width="match_parent"
android:layout_width="match_parent" /> android:layout_height="0dp"
<RelativeLayout android:layout_weight="1.0" />
android:id="@+id/track_list_empty_view"
android:layout_height="0dp" <RelativeLayout
android:layout_weight="1.0" android:id="@+id/track_list_empty_view"
android:layout_width="match_parent" > android:layout_width="match_parent"
<LinearLayout android:layout_height="0dp"
android:id="@+id/track_list_arrow_long" android:layout_weight="1.0">
android:layout_alignParentBottom="true"
android:layout_height="wrap_content" <LinearLayout
android:layout_width="match_parent" android:id="@+id/track_list_arrow_long"
android:paddingBottom="12dp" android:layout_width="match_parent"
android:paddingTop="16dp" > android:layout_height="wrap_content"
<View android:layout_alignParentBottom="true"
android:layout_height="match_parent" android:paddingTop="16dp"
android:layout_weight="1" android:paddingBottom="12dp">
android:layout_width="0dp" />
<ImageView <View
android:contentDescription="@string/image_arrow" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="10" android:layout_weight="1" />
android:layout_width="0dp"
android:src="@drawable/ic_arrow_long" /> <ImageView
<View android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="17" android:layout_weight="10"
android:layout_width="0dp" /> android:contentDescription="@string/image_arrow"
</LinearLayout> android:src="@drawable/ic_arrow_long" />
<LinearLayout
android:layout_above="@id/track_list_arrow_long" <View
android:layout_height="wrap_content" android:layout_width="0dp"
android:layout_width="match_parent" > android:layout_height="match_parent"
<View android:layout_weight="17" />
android:layout_height="match_parent" </LinearLayout>
android:layout_weight="5"
android:layout_width="0dp" /> <LinearLayout
<TextView android:layout_width="match_parent"
android:gravity="left" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:layout_above="@id/track_list_arrow_long">
android:layout_weight="22"
android:layout_width="0dp" <View
android:text="@string/track_list_empty_message" android:layout_width="0dp"
android:textColor="@color/list_empty_text" android:layout_height="match_parent"
style="@style/TextLarge" > android:layout_weight="5" />
</TextView>
<View <TextView
android:layout_height="match_parent" style="@style/TextLarge"
android:layout_weight="1" android:layout_width="0dp"
android:layout_width="0dp" /> android:layout_height="wrap_content"
</LinearLayout> android:layout_weight="22"
</RelativeLayout> android:gravity="left"
<include layout="@layout/track_controller" /> android:text="@string/track_list_empty_message"
android:textColor="@color/list_empty_text"></TextView>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
</LinearLayout>
</RelativeLayout>
<include layout="@layout/track_controller" />
</LinearLayout> </LinearLayout>
+105 -85
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,91 +14,112 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/TrackWidgetBoundingBox" > style="@style/TrackWidgetBoundingBox">
<!-- android:orientation="horizontal", override from the style --> <!-- android:orientation="horizontal", override from the style -->
<LinearLayout
android:orientation="horizontal"
android:paddingBottom="4dp"
android:paddingTop="4dp"
style="@style/TrackWidgetFrame" >
<LinearLayout <LinearLayout
android:layout_weight="1" style="@style/TrackWidgetFrame"
style="@style/TrackWidgetVerticalSpacer" /> android:orientation="horizontal"
<ImageButton android:paddingTop="4dp"
android:contentDescription="@string/image_record" android:paddingBottom="4dp">
android:id="@+id/track_widget_record_button"
android:src="@drawable/button_record" <LinearLayout
style="@style/TrackWidgetButton" /> style="@style/TrackWidgetVerticalSpacer"
<LinearLayout android:layout_weight="1" />
android:id="@+id/track_widget_stats_container"
android:layout_height="match_parent" <ImageButton
android:layout_weight="18" android:id="@+id/track_widget_record_button"
android:layout_width="0dp" style="@style/TrackWidgetButton"
android:padding="0dp" android:contentDescription="@string/image_record"
style="@style/TrackWidgetStatsContainer" > android:src="@drawable/button_record" />
<LinearLayout style="@style/TrackWidgetStatsSection" >
<!-- item1 --> <LinearLayout
<LinearLayout style="@style/TrackWidgetItemContainer" > android:id="@+id/track_widget_stats_container"
<TextView style="@style/TrackWidgetStatsContainer"
android:id="@+id/track_widget_item1_label" android:layout_width="0dp"
style="@style/TrackWidgetLabel" /> android:layout_height="match_parent"
<LinearLayout style="@style/TrackWidgetValueContainer" > android:layout_weight="18"
<TextView android:padding="0dp">
android:id="@+id/track_widget_item1_value"
style="@style/TrackWidgetValue" /> <LinearLayout style="@style/TrackWidgetStatsSection">
<TextView <!-- item1 -->
android:id="@+id/track_widget_item1_unit" <LinearLayout style="@style/TrackWidgetItemContainer">
style="@style/TrackWidgetUnit" />
<Chronometer <TextView
android:id="@+id/track_widget_item1_chronometer" android:id="@+id/track_widget_item1_label"
style="@style/TrackWidgetValue" /> style="@style/TrackWidgetLabel" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetValueContainer">
<TextView
android:id="@+id/track_widget_item1_value"
style="@style/TrackWidgetValue" />
<TextView
android:id="@+id/track_widget_item1_unit"
style="@style/TrackWidgetUnit" />
<Chronometer
android:id="@+id/track_widget_item1_chronometer"
style="@style/TrackWidgetValue" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!-- horizontal separator -->
<LinearLayout
style="@style/TrackWidgetHorizontalSeparator"
android:baselineAligned="false">
<LinearLayout
style="@style/TrackWidgetHorizontalSpacer"
android:layout_weight="1" />
<LinearLayout
style="@style/TrackWidgetHorizontalLine"
android:layout_weight="38" />
<LinearLayout
style="@style/TrackWidgetHorizontalSpacer"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetStatsSection">
<LinearLayout style="@style/TrackWidgetItemContainer">
<!-- item2 -->
<TextView
android:id="@+id/track_widget_item2_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer">
<TextView
android:id="@+id/track_widget_item2_value"
style="@style/TrackWidgetValue" />
<TextView
android:id="@+id/track_widget_item2_unit"
style="@style/TrackWidgetUnit" />
<Chronometer
android:id="@+id/track_widget_item2_chronometer"
style="@style/TrackWidgetValue" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout>
<!-- horizontal separator --> <ImageButton
<LinearLayout android:id="@+id/track_widget_stop_button"
android:baselineAligned="false" style="@style/TrackWidgetButton"
style="@style/TrackWidgetHorizontalSeparator" > android:contentDescription="@string/image_stop"
android:src="@drawable/ic_button_stop_disabled" />
<LinearLayout <LinearLayout
android:layout_weight="1" style="@style/TrackWidgetVerticalSpacer"
style="@style/TrackWidgetHorizontalSpacer" /> android:layout_weight="1" />
<LinearLayout
android:layout_weight="38"
style="@style/TrackWidgetHorizontalLine" />
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetHorizontalSpacer" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetStatsSection" >
<LinearLayout style="@style/TrackWidgetItemContainer" >
<!-- item2 -->
<TextView
android:id="@+id/track_widget_item2_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer" >
<TextView
android:id="@+id/track_widget_item2_value"
style="@style/TrackWidgetValue" />
<TextView
android:id="@+id/track_widget_item2_unit"
style="@style/TrackWidgetUnit" />
<Chronometer
android:id="@+id/track_widget_item2_chronometer"
style="@style/TrackWidgetValue" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<ImageButton
android:contentDescription="@string/image_stop" <ImageView
android:id="@+id/track_widget_stop_button" style="@style/TrackWidgetLogo"
android:src="@drawable/ic_button_stop_disabled" android:contentDescription="@string/image_my_tracks_logo" />
style="@style/TrackWidgetButton" />
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetVerticalSpacer" />
</LinearLayout>
<ImageView
android:contentDescription="@string/image_my_tracks_logo"
style="@style/TrackWidgetLogo" />
</RelativeLayout> </RelativeLayout>
+175 -138
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,147 +14,185 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/TrackWidgetBoundingBox" > style="@style/TrackWidgetBoundingBox">
<LinearLayout
android:baselineAligned="false"
style="@style/TrackWidgetFrame" >
<LinearLayout <LinearLayout
android:baselineAligned="false" style="@style/TrackWidgetFrame"
android:id="@+id/track_widget_stats_container" android:baselineAligned="false">
android:layout_weight="1"
style="@style/TrackWidgetStatsContainer" >
<LinearLayout style="@style/TrackWidgetStatsSection" >
<!-- item1 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x2" >
<TextView
android:id="@+id/track_widget_item1_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer" >
<TextView
android:id="@+id/track_widget_item1_value"
style="@style/TrackWidgetValue" />
<TextView
android:id="@+id/track_widget_item1_unit"
style="@style/TrackWidgetUnit" />
<Chronometer
android:id="@+id/track_widget_item1_chronometer"
style="@style/TrackWidgetValue" />
</LinearLayout>
</LinearLayout>
<!-- vertical separator -->
<LinearLayout <LinearLayout
android:baselineAligned="false" android:id="@+id/track_widget_stats_container"
style="@style/TrackWidgetVerticalSeparator" > style="@style/TrackWidgetStatsContainer"
<LinearLayout
android:layout_weight="2"
style="@style/TrackWidgetVerticalSpacer" />
<LinearLayout
android:layout_weight="1" android:layout_weight="1"
style="@style/TrackWidgetVerticalLine" /> android:baselineAligned="false">
<LinearLayout style="@style/TrackWidgetStatsSection">
<!-- item1 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x2">
<TextView
android:id="@+id/track_widget_item1_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer">
<TextView
android:id="@+id/track_widget_item1_value"
style="@style/TrackWidgetValue" />
<TextView
android:id="@+id/track_widget_item1_unit"
style="@style/TrackWidgetUnit" />
<Chronometer
android:id="@+id/track_widget_item1_chronometer"
style="@style/TrackWidgetValue" />
</LinearLayout>
</LinearLayout>
<!-- vertical separator -->
<LinearLayout
style="@style/TrackWidgetVerticalSeparator"
android:baselineAligned="false">
<LinearLayout
style="@style/TrackWidgetVerticalSpacer"
android:layout_weight="2" />
<LinearLayout
style="@style/TrackWidgetVerticalLine"
android:layout_weight="1" />
</LinearLayout>
<!-- item3 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x2">
<TextView
android:id="@+id/track_widget_item3_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer">
<TextView
android:id="@+id/track_widget_item3_value"
style="@style/TrackWidgetValue" />
<TextView
android:id="@+id/track_widget_item3_unit"
style="@style/TrackWidgetUnit" />
<Chronometer
android:id="@+id/track_widget_item3_chronometer"
style="@style/TrackWidgetValue" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!-- horizontal separator -->
<LinearLayout
style="@style/TrackWidgetHorizontalSeparator"
android:baselineAligned="false">
<LinearLayout
style="@style/TrackWidgetHorizontalSpacer"
android:layout_weight="1" />
<LinearLayout
style="@style/TrackWidgetHorizontalLine"
android:layout_weight="38" />
<LinearLayout
style="@style/TrackWidgetHorizontalSpacer"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetStatsSection">
<!-- item2 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x2">
<TextView
android:id="@+id/track_widget_item2_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer">
<TextView
android:id="@+id/track_widget_item2_value"
style="@style/TrackWidgetValue" />
<TextView
android:id="@+id/track_widget_item2_unit"
style="@style/TrackWidgetUnit" />
<Chronometer
android:id="@+id/track_widget_item2_chronometer"
style="@style/TrackWidgetValue" />
</LinearLayout>
</LinearLayout>
<!-- vertical separator -->
<LinearLayout
style="@style/TrackWidgetVerticalSeparator"
android:baselineAligned="false">
<LinearLayout
style="@style/TrackWidgetVerticalLine"
android:layout_weight="1" />
<LinearLayout
style="@style/TrackWidgetVerticalSpacer"
android:layout_weight="2" />
</LinearLayout>
<!-- item4 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x2">
<TextView
android:id="@+id/track_widget_item4_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer">
<TextView
android:id="@+id/track_widget_item4_value"
style="@style/TrackWidgetValue" />
<TextView
android:id="@+id/track_widget_item4_unit"
style="@style/TrackWidgetUnit" />
<Chronometer
android:id="@+id/track_widget_item4_chronometer"
style="@style/TrackWidgetValue" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<!-- item3 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x2" > <LinearLayout style="@style/TrackWidgetButtonContainer">
<TextView
android:id="@+id/track_widget_item3_label" <LinearLayout
style="@style/TrackWidgetLabel" /> style="@style/TrackWidgetVerticalSpacer"
<LinearLayout style="@style/TrackWidgetValueContainer" > android:layout_weight="1" />
<ImageButton
android:id="@+id/track_widget_record_button"
style="@style/TrackWidgetButton"
android:contentDescription="@string/image_record"
android:src="@drawable/button_record" />
<TextView <TextView
android:id="@+id/track_widget_item3_value" android:id="@+id/track_widget_record_status"
style="@style/TrackWidgetValue" /> style="@style/TrackWidgetRecordStatus" />
<TextView
android:id="@+id/track_widget_item3_unit" <ImageButton
style="@style/TrackWidgetUnit" /> android:id="@+id/track_widget_stop_button"
<Chronometer style="@style/TrackWidgetButton"
android:id="@+id/track_widget_item3_chronometer" android:contentDescription="@string/image_stop"
style="@style/TrackWidgetValue" /> android:src="@drawable/ic_button_stop_disabled" />
</LinearLayout>
<LinearLayout
style="@style/TrackWidgetVerticalSpacer"
android:layout_weight="1" />
</LinearLayout> </LinearLayout>
</LinearLayout>
<!-- horizontal separator -->
<LinearLayout
android:baselineAligned="false"
style="@style/TrackWidgetHorizontalSeparator" >
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetHorizontalSpacer" />
<LinearLayout
android:layout_weight="38"
style="@style/TrackWidgetHorizontalLine" />
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetHorizontalSpacer" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetStatsSection" >
<!-- item2 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x2" >
<TextView
android:id="@+id/track_widget_item2_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer" >
<TextView
android:id="@+id/track_widget_item2_value"
style="@style/TrackWidgetValue" />
<TextView
android:id="@+id/track_widget_item2_unit"
style="@style/TrackWidgetUnit" />
<Chronometer
android:id="@+id/track_widget_item2_chronometer"
style="@style/TrackWidgetValue" />
</LinearLayout>
</LinearLayout>
<!-- vertical separator -->
<LinearLayout
android:baselineAligned="false"
style="@style/TrackWidgetVerticalSeparator" >
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetVerticalLine" />
<LinearLayout
android:layout_weight="2"
style="@style/TrackWidgetVerticalSpacer" />
</LinearLayout>
<!-- item4 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x2" >
<TextView
android:id="@+id/track_widget_item4_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer" >
<TextView
android:id="@+id/track_widget_item4_value"
style="@style/TrackWidgetValue" />
<TextView
android:id="@+id/track_widget_item4_unit"
style="@style/TrackWidgetUnit" />
<Chronometer
android:id="@+id/track_widget_item4_chronometer"
style="@style/TrackWidgetValue" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout style="@style/TrackWidgetButtonContainer" >
<LinearLayout <ImageView
android:layout_weight="1" style="@style/TrackWidgetLogo"
style="@style/TrackWidgetVerticalSpacer" /> android:contentDescription="@string/image_my_tracks_logo" />
<ImageButton
android:contentDescription="@string/image_record"
android:id="@+id/track_widget_record_button"
android:src="@drawable/button_record"
style="@style/TrackWidgetButton" />
<TextView
android:id="@+id/track_widget_record_status"
style="@style/TrackWidgetRecordStatus" />
<ImageButton
android:contentDescription="@string/image_stop"
android:id="@+id/track_widget_stop_button"
android:src="@drawable/ic_button_stop_disabled"
style="@style/TrackWidgetButton" />
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetVerticalSpacer" />
</LinearLayout>
</LinearLayout>
<ImageView
android:contentDescription="@string/image_my_tracks_logo"
style="@style/TrackWidgetLogo" />
</RelativeLayout> </RelativeLayout>
+175 -138
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,147 +14,185 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/TrackWidgetBoundingBox" > style="@style/TrackWidgetBoundingBox">
<LinearLayout
android:baselineAligned="false"
style="@style/TrackWidgetFrame" >
<LinearLayout <LinearLayout
android:baselineAligned="false" style="@style/TrackWidgetFrame"
android:id="@+id/track_widget_stats_container" android:baselineAligned="false">
android:layout_weight="2"
style="@style/TrackWidgetStatsContainer" >
<LinearLayout style="@style/TrackWidgetStatsSection" >
<!-- item1 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3" >
<TextView
android:id="@+id/track_widget_item1_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3" >
<TextView
android:id="@+id/track_widget_item1_value"
style="@style/TrackWidgetValue4x3" />
<TextView
android:id="@+id/track_widget_item1_unit"
style="@style/TrackWidgetUnit4x3" />
<Chronometer
android:id="@+id/track_widget_item1_chronometer"
style="@style/TrackWidgetValue4x3" />
</LinearLayout>
</LinearLayout>
<!-- vertical separator -->
<LinearLayout <LinearLayout
android:baselineAligned="false" android:id="@+id/track_widget_stats_container"
style="@style/TrackWidgetVerticalSeparator" > style="@style/TrackWidgetStatsContainer"
<LinearLayout
android:layout_weight="2" android:layout_weight="2"
style="@style/TrackWidgetVerticalSpacer" /> android:baselineAligned="false">
<LinearLayout
android:layout_weight="1" <LinearLayout style="@style/TrackWidgetStatsSection">
style="@style/TrackWidgetVerticalLine" /> <!-- item1 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3">
<TextView
android:id="@+id/track_widget_item1_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3">
<TextView
android:id="@+id/track_widget_item1_value"
style="@style/TrackWidgetValue4x3" />
<TextView
android:id="@+id/track_widget_item1_unit"
style="@style/TrackWidgetUnit4x3" />
<Chronometer
android:id="@+id/track_widget_item1_chronometer"
style="@style/TrackWidgetValue4x3" />
</LinearLayout>
</LinearLayout>
<!-- vertical separator -->
<LinearLayout
style="@style/TrackWidgetVerticalSeparator"
android:baselineAligned="false">
<LinearLayout
style="@style/TrackWidgetVerticalSpacer"
android:layout_weight="2" />
<LinearLayout
style="@style/TrackWidgetVerticalLine"
android:layout_weight="1" />
</LinearLayout>
<!-- item3 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3">
<TextView
android:id="@+id/track_widget_item3_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3">
<TextView
android:id="@+id/track_widget_item3_value"
style="@style/TrackWidgetValue4x3" />
<TextView
android:id="@+id/track_widget_item3_unit"
style="@style/TrackWidgetUnit4x3" />
<Chronometer
android:id="@+id/track_widget_item3_chronometer"
style="@style/TrackWidgetValue4x3" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!-- horizontal separator -->
<LinearLayout
style="@style/TrackWidgetHorizontalSeparator"
android:baselineAligned="false">
<LinearLayout
style="@style/TrackWidgetHorizontalSpacer"
android:layout_weight="1" />
<LinearLayout
style="@style/TrackWidgetHorizontalLine"
android:layout_weight="38" />
<LinearLayout
style="@style/TrackWidgetHorizontalSpacer"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetStatsSection">
<!-- item2 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3">
<TextView
android:id="@+id/track_widget_item2_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3">
<TextView
android:id="@+id/track_widget_item2_value"
style="@style/TrackWidgetValue4x3" />
<TextView
android:id="@+id/track_widget_item2_unit"
style="@style/TrackWidgetUnit4x3" />
<Chronometer
android:id="@+id/track_widget_item2_chronometer"
style="@style/TrackWidgetValue4x3" />
</LinearLayout>
</LinearLayout>
<!-- vertical separator -->
<LinearLayout
style="@style/TrackWidgetVerticalSeparator"
android:baselineAligned="false">
<LinearLayout
style="@style/TrackWidgetVerticalLine"
android:layout_weight="1" />
<LinearLayout
style="@style/TrackWidgetVerticalSpacer"
android:layout_weight="2" />
</LinearLayout>
<!-- item4 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3">
<TextView
android:id="@+id/track_widget_item4_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3">
<TextView
android:id="@+id/track_widget_item4_value"
style="@style/TrackWidgetValue4x3" />
<TextView
android:id="@+id/track_widget_item4_unit"
style="@style/TrackWidgetUnit4x3" />
<Chronometer
android:id="@+id/track_widget_item4_chronometer"
style="@style/TrackWidgetValue4x3" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<!-- item3 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3" > <LinearLayout style="@style/TrackWidgetButtonContainer">
<TextView
android:id="@+id/track_widget_item3_label" <LinearLayout
style="@style/TrackWidgetLabel" /> style="@style/TrackWidgetVerticalSpacer"
<LinearLayout style="@style/TrackWidgetValueContainer4x3" > android:layout_weight="1" />
<ImageButton
android:id="@+id/track_widget_record_button"
style="@style/TrackWidgetButton"
android:contentDescription="@string/image_record"
android:src="@drawable/button_record" />
<TextView <TextView
android:id="@+id/track_widget_item3_value" android:id="@+id/track_widget_record_status"
style="@style/TrackWidgetValue4x3" /> style="@style/TrackWidgetRecordStatus" />
<TextView
android:id="@+id/track_widget_item3_unit" <ImageButton
style="@style/TrackWidgetUnit4x3" /> android:id="@+id/track_widget_stop_button"
<Chronometer style="@style/TrackWidgetButton"
android:id="@+id/track_widget_item3_chronometer" android:contentDescription="@string/image_stop"
style="@style/TrackWidgetValue4x3" /> android:src="@drawable/ic_button_stop_disabled" />
</LinearLayout>
<LinearLayout
style="@style/TrackWidgetVerticalSpacer"
android:layout_weight="1" />
</LinearLayout> </LinearLayout>
</LinearLayout>
<!-- horizontal separator -->
<LinearLayout
android:baselineAligned="false"
style="@style/TrackWidgetHorizontalSeparator" >
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetHorizontalSpacer" />
<LinearLayout
android:layout_weight="38"
style="@style/TrackWidgetHorizontalLine" />
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetHorizontalSpacer" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetStatsSection" >
<!-- item2 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3" >
<TextView
android:id="@+id/track_widget_item2_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3" >
<TextView
android:id="@+id/track_widget_item2_value"
style="@style/TrackWidgetValue4x3" />
<TextView
android:id="@+id/track_widget_item2_unit"
style="@style/TrackWidgetUnit4x3" />
<Chronometer
android:id="@+id/track_widget_item2_chronometer"
style="@style/TrackWidgetValue4x3" />
</LinearLayout>
</LinearLayout>
<!-- vertical separator -->
<LinearLayout
android:baselineAligned="false"
style="@style/TrackWidgetVerticalSeparator" >
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetVerticalLine" />
<LinearLayout
android:layout_weight="2"
style="@style/TrackWidgetVerticalSpacer" />
</LinearLayout>
<!-- item4 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3" >
<TextView
android:id="@+id/track_widget_item4_label"
style="@style/TrackWidgetLabel" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3" >
<TextView
android:id="@+id/track_widget_item4_value"
style="@style/TrackWidgetValue4x3" />
<TextView
android:id="@+id/track_widget_item4_unit"
style="@style/TrackWidgetUnit4x3" />
<Chronometer
android:id="@+id/track_widget_item4_chronometer"
style="@style/TrackWidgetValue4x3" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout style="@style/TrackWidgetButtonContainer" >
<LinearLayout <ImageView
android:layout_weight="1" style="@style/TrackWidgetLogo"
style="@style/TrackWidgetVerticalSpacer" /> android:contentDescription="@string/image_my_tracks_logo" />
<ImageButton
android:contentDescription="@string/image_record"
android:id="@+id/track_widget_record_button"
android:src="@drawable/button_record"
style="@style/TrackWidgetButton" />
<TextView
android:id="@+id/track_widget_record_status"
style="@style/TrackWidgetRecordStatus" />
<ImageButton
android:contentDescription="@string/image_stop"
android:id="@+id/track_widget_stop_button"
android:src="@drawable/ic_button_stop_disabled"
style="@style/TrackWidgetButton" />
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetVerticalSpacer" />
</LinearLayout>
</LinearLayout>
<ImageView
android:contentDescription="@string/image_my_tracks_logo"
style="@style/TrackWidgetLogo" />
</RelativeLayout> </RelativeLayout>
+184 -144
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,151 +14,192 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/TrackWidgetBoundingBox" > style="@style/TrackWidgetBoundingBox">
<LinearLayout
android:baselineAligned="false"
style="@style/TrackWidgetFrame" >
<LinearLayout <LinearLayout
android:baselineAligned="false" style="@style/TrackWidgetFrame"
android:id="@+id/track_widget_stats_container" android:baselineAligned="false">
android:layout_weight="3"
style="@style/TrackWidgetStatsContainer" > <LinearLayout
<LinearLayout style="@style/TrackWidgetStatsSection" > android:id="@+id/track_widget_stats_container"
<!-- item1 --> style="@style/TrackWidgetStatsContainer"
<LinearLayout style="@style/TrackWidgetItemContainer4x4" > android:layout_weight="3"
<TextView android:baselineAligned="false">
android:id="@+id/track_widget_item1_label"
style="@style/TrackWidgetLabel4x4" /> <LinearLayout style="@style/TrackWidgetStatsSection">
<LinearLayout style="@style/TrackWidgetValueContainer4x3" > <!-- item1 -->
<TextView <LinearLayout style="@style/TrackWidgetItemContainer4x4">
android:id="@+id/track_widget_item1_value"
style="@style/TrackWidgetValue4x4" /> <TextView
<TextView android:id="@+id/track_widget_item1_label"
android:id="@+id/track_widget_item1_unit" style="@style/TrackWidgetLabel4x4" />
style="@style/TrackWidgetUnit4x4" />
<Chronometer <LinearLayout style="@style/TrackWidgetValueContainer4x3">
android:id="@+id/track_widget_item1_chronometer"
style="@style/TrackWidgetValue4x4" /> <TextView
</LinearLayout> android:id="@+id/track_widget_item1_value"
style="@style/TrackWidgetValue4x4" />
<TextView
android:id="@+id/track_widget_item1_unit"
style="@style/TrackWidgetUnit4x4" />
<Chronometer
android:id="@+id/track_widget_item1_chronometer"
style="@style/TrackWidgetValue4x4" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!-- horizontal separator -->
<LinearLayout
style="@style/TrackWidgetHorizontalSeparator"
android:baselineAligned="false">
<LinearLayout
style="@style/TrackWidgetHorizontalSpacer"
android:layout_weight="1" />
<LinearLayout
style="@style/TrackWidgetHorizontalLine"
android:layout_weight="4" />
<LinearLayout
style="@style/TrackWidgetHorizontalSpacer"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetStatsSection">
<!-- item3 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x4">
<TextView
android:id="@+id/track_widget_item3_label"
style="@style/TrackWidgetLabel4x4" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3">
<TextView
android:id="@+id/track_widget_item3_value"
style="@style/TrackWidgetValue4x4" />
<TextView
android:id="@+id/track_widget_item3_unit"
style="@style/TrackWidgetUnit4x4" />
<Chronometer
android:id="@+id/track_widget_item3_chronometer"
style="@style/TrackWidgetValue4x4" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
style="@style/TrackWidgetHorizontalSeparator"
android:baselineAligned="false">
<LinearLayout
style="@style/TrackWidgetHorizontalSpacer"
android:layout_weight="1" />
<LinearLayout
style="@style/TrackWidgetHorizontalLine"
android:layout_weight="38" />
<LinearLayout
style="@style/TrackWidgetHorizontalSpacer"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetStatsSection">
<!-- item2 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3">
<TextView
android:id="@+id/track_widget_item2_label"
style="@style/TrackWidgetLabel4x4" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3">
<TextView
android:id="@+id/track_widget_item2_value"
style="@style/TrackWidgetValue4x3" />
<TextView
android:id="@+id/track_widget_item2_unit"
style="@style/TrackWidgetUnit4x3" />
<Chronometer
android:id="@+id/track_widget_item2_chronometer"
style="@style/TrackWidgetValue4x3" />
</LinearLayout>
</LinearLayout>
<!-- vertical separator -->
<LinearLayout
style="@style/TrackWidgetVerticalSeparator"
android:baselineAligned="false">
<LinearLayout
style="@style/TrackWidgetVerticalLine"
android:layout_weight="1" />
<LinearLayout
style="@style/TrackWidgetVerticalSpacer"
android:layout_weight="2" />
</LinearLayout>
<!-- item4 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3">
<TextView
android:id="@+id/track_widget_item4_label"
style="@style/TrackWidgetLabel4x4" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3">
<TextView
android:id="@+id/track_widget_item4_value"
style="@style/TrackWidgetValue4x3" />
<TextView
android:id="@+id/track_widget_item4_unit"
style="@style/TrackWidgetUnit4x3" />
<Chronometer
android:id="@+id/track_widget_item4_chronometer"
style="@style/TrackWidgetValue4x3" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout>
<!-- horizontal separator --> <LinearLayout style="@style/TrackWidgetButtonContainer">
<LinearLayout
android:baselineAligned="false" <LinearLayout
style="@style/TrackWidgetHorizontalSeparator" > style="@style/TrackWidgetVerticalSpacer"
<LinearLayout android:layout_weight="1" />
android:layout_weight="1"
style="@style/TrackWidgetHorizontalSpacer" /> <ImageButton
<LinearLayout android:id="@+id/track_widget_record_button"
android:layout_weight="4" style="@style/TrackWidgetButton"
style="@style/TrackWidgetHorizontalLine" /> android:contentDescription="@string/image_record"
<LinearLayout android:src="@drawable/button_record" />
android:layout_weight="1"
style="@style/TrackWidgetHorizontalSpacer" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetStatsSection" >
<!-- item3 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x4" >
<TextView
android:id="@+id/track_widget_item3_label"
style="@style/TrackWidgetLabel4x4" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3" >
<TextView <TextView
android:id="@+id/track_widget_item3_value" android:id="@+id/track_widget_record_status"
style="@style/TrackWidgetValue4x4" /> style="@style/TrackWidgetRecordStatus" />
<TextView
android:id="@+id/track_widget_item3_unit" <ImageButton
style="@style/TrackWidgetUnit4x4" /> android:id="@+id/track_widget_stop_button"
<Chronometer style="@style/TrackWidgetButton"
android:id="@+id/track_widget_item3_chronometer" android:contentDescription="@string/image_stop"
style="@style/TrackWidgetValue4x4" /> android:src="@drawable/ic_button_stop_disabled" />
</LinearLayout>
<LinearLayout
style="@style/TrackWidgetVerticalSpacer"
android:layout_weight="1" />
</LinearLayout> </LinearLayout>
</LinearLayout>
<LinearLayout
android:baselineAligned="false"
style="@style/TrackWidgetHorizontalSeparator" >
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetHorizontalSpacer" />
<LinearLayout
android:layout_weight="38"
style="@style/TrackWidgetHorizontalLine" />
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetHorizontalSpacer" />
</LinearLayout>
<LinearLayout style="@style/TrackWidgetStatsSection" >
<!-- item2 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3" >
<TextView
android:id="@+id/track_widget_item2_label"
style="@style/TrackWidgetLabel4x4" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3" >
<TextView
android:id="@+id/track_widget_item2_value"
style="@style/TrackWidgetValue4x3" />
<TextView
android:id="@+id/track_widget_item2_unit"
style="@style/TrackWidgetUnit4x3" />
<Chronometer
android:id="@+id/track_widget_item2_chronometer"
style="@style/TrackWidgetValue4x3" />
</LinearLayout>
</LinearLayout>
<!-- vertical separator -->
<LinearLayout
android:baselineAligned="false"
style="@style/TrackWidgetVerticalSeparator" >
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetVerticalLine" />
<LinearLayout
android:layout_weight="2"
style="@style/TrackWidgetVerticalSpacer" />
</LinearLayout>
<!-- item4 -->
<LinearLayout style="@style/TrackWidgetItemContainer4x3" >
<TextView
android:id="@+id/track_widget_item4_label"
style="@style/TrackWidgetLabel4x4" />
<LinearLayout style="@style/TrackWidgetValueContainer4x3" >
<TextView
android:id="@+id/track_widget_item4_value"
style="@style/TrackWidgetValue4x3" />
<TextView
android:id="@+id/track_widget_item4_unit"
style="@style/TrackWidgetUnit4x3" />
<Chronometer
android:id="@+id/track_widget_item4_chronometer"
style="@style/TrackWidgetValue4x3" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout style="@style/TrackWidgetButtonContainer" >
<LinearLayout <ImageView
android:layout_weight="1" style="@style/TrackWidgetLogo4x4"
style="@style/TrackWidgetVerticalSpacer" /> android:contentDescription="@string/image_my_tracks_logo" />
<ImageButton
android:contentDescription="@string/image_record"
android:id="@+id/track_widget_record_button"
android:src="@drawable/button_record"
style="@style/TrackWidgetButton" />
<TextView
android:id="@+id/track_widget_record_status"
style="@style/TrackWidgetRecordStatus" />
<ImageButton
android:contentDescription="@string/image_stop"
android:id="@+id/track_widget_stop_button"
android:src="@drawable/ic_button_stop_disabled"
style="@style/TrackWidgetButton" />
<LinearLayout
android:layout_weight="1"
style="@style/TrackWidgetVerticalSpacer" />
</LinearLayout>
</LinearLayout>
<ImageView
android:contentDescription="@string/image_my_tracks_logo"
style="@style/TrackWidgetLogo4x4" />
</RelativeLayout> </RelativeLayout>
+36 -28
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,31 +14,40 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="match_parent"
android:orientation="vertical" > android:orientation="vertical">
<ScrollView style="@style/ScrollView.WithBottomButtons" >
<LinearLayout <ScrollView style="@style/ScrollView.WithBottomButtons">
android:layout_height="wrap_content"
android:layout_width="match_parent" <LinearLayout
android:orientation="vertical" android:layout_width="match_parent"
android:padding="8dp" > android:layout_height="wrap_content"
<Spinner android:orientation="vertical"
android:id="@+id/track_widget_config_item1" android:padding="8dp">
style="@style/TrackWidgetConfigSpinner" />
<Spinner <Spinner
android:id="@+id/track_widget_config_item2" android:id="@+id/track_widget_config_item1"
style="@style/TrackWidgetConfigSpinner" /> style="@style/TrackWidgetConfigSpinner" />
<Spinner
android:id="@+id/track_widget_config_item3" <Spinner
style="@style/TrackWidgetConfigSpinner" /> android:id="@+id/track_widget_config_item2"
<Spinner style="@style/TrackWidgetConfigSpinner" />
android:id="@+id/track_widget_config_item4"
style="@style/TrackWidgetConfigSpinner" /> <Spinner
android:id="@+id/track_widget_config_item3"
style="@style/TrackWidgetConfigSpinner" />
<Spinner
android:id="@+id/track_widget_config_item4"
style="@style/TrackWidgetConfigSpinner" />
</LinearLayout>
</ScrollView>
<View style="@style/BottomButtonDivider" />
<LinearLayout style="@style/BottomButtonBar">
<include layout="@layout/track_widget_config_buttons" />
</LinearLayout> </LinearLayout>
</ScrollView>
<View style="@style/BottomButtonDivider" />
<LinearLayout style="@style/BottomButtonBar" >
<include layout="@layout/track_widget_config_buttons" />
</LinearLayout>
</LinearLayout> </LinearLayout>
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,16 +13,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<merge xmlns:android="http://schemas.android.com/apk/res/android" > <merge xmlns:android="http://schemas.android.com/apk/res/android">
<!-- In v14, postive button on the right. --> <!-- In v14, postive button on the right. -->
<Button <Button
android:id="@+id/track_widget_config_cancel" android:id="@+id/track_widget_config_cancel"
android:layout_gravity="left" style="@style/BottomButton"
android:text="@string/generic_cancel" android:layout_gravity="left"
style="@style/BottomButton" /> android:text="@string/generic_cancel" />
<Button
android:id="@+id/track_widget_config_add" <Button
android:layout_gravity="right" android:id="@+id/track_widget_config_add"
android:text="@string/generic_add" style="@style/BottomButton"
style="@style/BottomButton" /> android:layout_gravity="right"
android:text="@string/generic_add" />
</merge> </merge>
+10 -10
View File
@@ -16,27 +16,27 @@ limitations under the License.
<menu xmlns:android="http://schemas.android.com/apk/res/android"> <menu xmlns:android="http://schemas.android.com/apk/res/android">
<item <item
android:id="@+id/list_context_menu_share" android:id="@+id/list_context_menu_share"
android:title="@string/menu_share"
android:actionProviderClass="android.widget.ShareActionProvider" android:actionProviderClass="android.widget.ShareActionProvider"
android:showAsAction="ifRoom" /> android:showAsAction="ifRoom"
android:title="@string/menu_share" />
<item <item
android:id="@+id/list_context_menu_show_on_map" android:id="@+id/list_context_menu_show_on_map"
android:icon="@drawable/ic_menu_show_on_map" android:icon="@drawable/ic_menu_show_on_map"
android:title="@string/menu_show_on_map" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_show_on_map" />
<item <item
android:id="@+id/list_context_menu_edit" android:id="@+id/list_context_menu_edit"
android:icon="@drawable/ic_menu_edit" android:icon="@drawable/ic_menu_edit"
android:title="@string/menu_edit" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_edit" />
<item <item
android:id="@+id/list_context_menu_delete" android:id="@+id/list_context_menu_delete"
android:icon="@drawable/ic_menu_delete" android:icon="@drawable/ic_menu_delete"
android:title="@string/menu_delete" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_delete" />
<item <item
android:id="@+id/list_context_menu_select_all" android:id="@+id/list_context_menu_select_all"
android:icon="@drawable/ic_menu_select_all" android:icon="@drawable/ic_menu_select_all"
android:title="@string/menu_select_all" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_select_all" />
</menu> </menu>
+6 -6
View File
@@ -17,16 +17,16 @@ limitations under the License.
<item <item
android:id="@+id/marker_detail_show_on_map" android:id="@+id/marker_detail_show_on_map"
android:icon="@drawable/ic_menu_show_on_map" android:icon="@drawable/ic_menu_show_on_map"
android:title="@string/menu_show_on_map" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_show_on_map" />
<item <item
android:id="@+id/marker_detail_edit" android:id="@+id/marker_detail_edit"
android:icon="@drawable/ic_menu_edit" android:icon="@drawable/ic_menu_edit"
android:title="@string/menu_edit" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_edit" />
<item <item
android:id="@+id/marker_detail_delete" android:id="@+id/marker_detail_delete"
android:icon="@drawable/ic_menu_delete" android:icon="@drawable/ic_menu_delete"
android:title="@string/menu_delete" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_delete" />
</menu> </menu>
+4 -4
View File
@@ -17,11 +17,11 @@ limitations under the License.
<item <item
android:id="@+id/marker_list_insert_marker" android:id="@+id/marker_list_insert_marker"
android:icon="@drawable/ic_menu_insert_marker" android:icon="@drawable/ic_menu_insert_marker"
android:title="@string/menu_insert_marker" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_insert_marker" />
<item <item
android:id="@+id/marker_list_search" android:id="@+id/marker_list_search"
android:title="@string/menu_search"
android:actionViewClass="android.widget.SearchView" android:actionViewClass="android.widget.SearchView"
android:showAsAction="ifRoom" /> android:showAsAction="ifRoom"
android:title="@string/menu_search" />
</menu> </menu>
+2 -2
View File
@@ -16,7 +16,7 @@ limitations under the License.
<menu xmlns:android="http://schemas.android.com/apk/res/android"> <menu xmlns:android="http://schemas.android.com/apk/res/android">
<item <item
android:id="@+id/search_list_search" android:id="@+id/search_list_search"
android:title="@string/menu_search"
android:actionViewClass="android.widget.SearchView" android:actionViewClass="android.widget.SearchView"
android:showAsAction="ifRoom" /> android:showAsAction="ifRoom"
android:title="@string/menu_search" />
</menu> </menu>
+9 -9
View File
@@ -18,26 +18,26 @@ limitations under the License.
android:id="@+id/track_detail_insert_marker" android:id="@+id/track_detail_insert_marker"
android:icon="@drawable/ic_menu_insert_marker" android:icon="@drawable/ic_menu_insert_marker"
android:orderInCategory="1" android:orderInCategory="1"
android:title="@string/menu_insert_marker" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_insert_marker" />
<item <item
android:id="@+id/track_detail_insert_photo" android:id="@+id/track_detail_insert_photo"
android:icon="@drawable/ic_menu_insert_photo" android:icon="@drawable/ic_menu_insert_photo"
android:orderInCategory="2" android:orderInCategory="2"
android:title="@string/menu_insert_photo" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_insert_photo" />
<item <item
android:id="@+id/track_detail_share" android:id="@+id/track_detail_share"
android:orderInCategory="4"
android:title="@string/menu_share"
android:actionProviderClass="android.widget.ShareActionProvider" android:actionProviderClass="android.widget.ShareActionProvider"
android:showAsAction="ifRoom" /> android:orderInCategory="4"
android:showAsAction="ifRoom"
android:title="@string/menu_share" />
<item <item
android:id="@+id/track_detail_markers" android:id="@+id/track_detail_markers"
android:icon="@drawable/ic_menu_insert_marker" android:icon="@drawable/ic_menu_insert_marker"
android:orderInCategory="5" android:orderInCategory="5"
android:title="@string/menu_markers" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_markers" />
<item <item
android:id="@+id/track_detail_edit" android:id="@+id/track_detail_edit"
android:icon="@drawable/ic_menu_edit" android:icon="@drawable/ic_menu_edit"
+6 -6
View File
@@ -16,20 +16,20 @@ limitations under the License.
<menu xmlns:android="http://schemas.android.com/apk/res/android"> <menu xmlns:android="http://schemas.android.com/apk/res/android">
<item <item
android:id="@+id/track_list_search" android:id="@+id/track_list_search"
android:title="@string/menu_search"
android:actionViewClass="android.widget.SearchView" android:actionViewClass="android.widget.SearchView"
android:showAsAction="ifRoom" /> android:showAsAction="ifRoom"
android:title="@string/menu_search" />
<item <item
android:id="@+id/track_list_start_gps" android:id="@+id/track_list_start_gps"
android:icon="@drawable/ic_menu_start_gps" android:icon="@drawable/ic_menu_start_gps"
android:title="@string/menu_start_gps" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_start_gps" />
<item <item
android:id="@+id/track_list_markers" android:id="@+id/track_list_markers"
android:icon="@drawable/ic_menu_insert_marker" android:icon="@drawable/ic_menu_insert_marker"
android:orderInCategory="5" android:orderInCategory="5"
android:title="@string/menu_markers" android:showAsAction="ifRoom"
android:showAsAction="ifRoom" /> android:title="@string/menu_markers" />
<item <item
android:id="@+id/track_list_aggregated_statistics" android:id="@+id/track_list_aggregated_statistics"
android:icon="@drawable/ic_menu_aggregated_statistics" android:icon="@drawable/ic_menu_aggregated_statistics"
+240 -241
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,243 +14,243 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<resources> <resources>
<!-- Do not translate any arrays in this file. --> <!-- Do not translate any arrays in this file. -->
<string-array name="activity_types"> <string-array name="activity_types">
<item>@string/activity_type_airplane</item> <item>@string/activity_type_airplane</item>
<item>@string/activity_type_atv</item> <item>@string/activity_type_atv</item>
<item>@string/activity_type_biking</item> <item>@string/activity_type_biking</item>
<item>@string/activity_type_blimp</item> <item>@string/activity_type_blimp</item>
<item>@string/activity_type_boat</item> <item>@string/activity_type_boat</item>
<item>@string/activity_type_climbing</item> <item>@string/activity_type_climbing</item>
<item>@string/activity_type_commercial_airplane</item> <item>@string/activity_type_commercial_airplane</item>
<item>@string/activity_type_cross_country_skiing</item> <item>@string/activity_type_cross_country_skiing</item>
<item>@string/activity_type_cycling</item> <item>@string/activity_type_cycling</item>
<item>@string/activity_type_dirt_bike</item> <item>@string/activity_type_dirt_bike</item>
<item>@string/activity_type_donkey_back_riding</item> <item>@string/activity_type_donkey_back_riding</item>
<item>@string/activity_type_driving</item> <item>@string/activity_type_driving</item>
<item>@string/activity_type_driving_bus</item> <item>@string/activity_type_driving_bus</item>
<item>@string/activity_type_driving_car</item> <item>@string/activity_type_driving_car</item>
<item>@string/activity_type_ferry</item> <item>@string/activity_type_ferry</item>
<item>@string/activity_type_frisbee</item> <item>@string/activity_type_frisbee</item>
<item>@string/activity_type_gliding</item> <item>@string/activity_type_gliding</item>
<item>@string/activity_type_hang_gliding</item> <item>@string/activity_type_hang_gliding</item>
<item>@string/activity_type_helicopter</item> <item>@string/activity_type_helicopter</item>
<item>@string/activity_type_hiking</item> <item>@string/activity_type_hiking</item>
<item>@string/activity_type_horse_back_riding</item> <item>@string/activity_type_horse_back_riding</item>
<item>@string/activity_type_hot_air_balloon</item> <item>@string/activity_type_hot_air_balloon</item>
<item>@string/activity_type_ice_sailing</item> <item>@string/activity_type_ice_sailing</item>
<item>@string/activity_type_inline_skating</item> <item>@string/activity_type_inline_skating</item>
<item>@string/activity_type_kayaking</item> <item>@string/activity_type_kayaking</item>
<item>@string/activity_type_kite_surfing</item> <item>@string/activity_type_kite_surfing</item>
<item>@string/activity_type_land_sailing</item> <item>@string/activity_type_land_sailing</item>
<item>@string/activity_type_mixed_type</item> <item>@string/activity_type_mixed_type</item>
<item>@string/activity_type_motor_bike</item> <item>@string/activity_type_motor_bike</item>
<item>@string/activity_type_motor_boating</item> <item>@string/activity_type_motor_boating</item>
<item>@string/activity_type_mountain_biking</item> <item>@string/activity_type_mountain_biking</item>
<item>@string/activity_type_off_trail_hiking</item> <item>@string/activity_type_off_trail_hiking</item>
<item>@string/activity_type_other</item> <item>@string/activity_type_other</item>
<item>@string/activity_type_paddling</item> <item>@string/activity_type_paddling</item>
<item>@string/activity_type_para_gliding</item> <item>@string/activity_type_para_gliding</item>
<item>@string/activity_type_rc_airplane</item> <item>@string/activity_type_rc_airplane</item>
<item>@string/activity_type_rc_boat</item> <item>@string/activity_type_rc_boat</item>
<item>@string/activity_type_rc_helicopter</item> <item>@string/activity_type_rc_helicopter</item>
<item>@string/activity_type_riding</item> <item>@string/activity_type_riding</item>
<item>@string/activity_type_road_biking</item> <item>@string/activity_type_road_biking</item>
<item>@string/activity_type_roller_skiing</item> <item>@string/activity_type_roller_skiing</item>
<item>@string/activity_type_rowing</item> <item>@string/activity_type_rowing</item>
<item>@string/activity_type_running</item> <item>@string/activity_type_running</item>
<item>@string/activity_type_sailing</item> <item>@string/activity_type_sailing</item>
<item>@string/activity_type_seaplane</item> <item>@string/activity_type_seaplane</item>
<item>@string/activity_type_skate_boarding</item> <item>@string/activity_type_skate_boarding</item>
<item>@string/activity_type_skating</item> <item>@string/activity_type_skating</item>
<item>@string/activity_type_skiing</item> <item>@string/activity_type_skiing</item>
<item>@string/activity_type_sky_jumping</item> <item>@string/activity_type_sky_jumping</item>
<item>@string/activity_type_sled</item> <item>@string/activity_type_sled</item>
<item>@string/activity_type_snow_boarding</item> <item>@string/activity_type_snow_boarding</item>
<item>@string/activity_type_snow_shoeing</item> <item>@string/activity_type_snow_shoeing</item>
<item>@string/activity_type_speed_walking</item> <item>@string/activity_type_speed_walking</item>
<item>@string/activity_type_street_running</item> <item>@string/activity_type_street_running</item>
<item>@string/activity_type_surfing</item> <item>@string/activity_type_surfing</item>
<item>@string/activity_type_track_cycling</item> <item>@string/activity_type_track_cycling</item>
<item>@string/activity_type_track_running</item> <item>@string/activity_type_track_running</item>
<item>@string/activity_type_trail_hiking</item> <item>@string/activity_type_trail_hiking</item>
<item>@string/activity_type_trail_running</item> <item>@string/activity_type_trail_running</item>
<item>@string/activity_type_train</item> <item>@string/activity_type_train</item>
<item>@string/activity_type_ultimate_frisbee</item> <item>@string/activity_type_ultimate_frisbee</item>
<item>@string/activity_type_unknown</item> <item>@string/activity_type_unknown</item>
<item>@string/activity_type_wakeboarding</item> <item>@string/activity_type_wakeboarding</item>
<item>@string/activity_type_walking</item> <item>@string/activity_type_walking</item>
<item>@string/activity_type_water_skiing</item> <item>@string/activity_type_water_skiing</item>
<item>@string/activity_type_wind_surfing</item> <item>@string/activity_type_wind_surfing</item>
</string-array> </string-array>
<string-array name="auto_resume_track_timeout_values"> <string-array name="auto_resume_track_timeout_values">
<item>0</item> <item>0</item>
<item>5</item> <item>5</item>
<item>10</item> <item>10</item>
<item>15</item> <item>15</item>
<item>-1</item> <item>-1</item>
</string-array> </string-array>
<string-array name="chart_x_axis_options"> <string-array name="chart_x_axis_options">
<item>@string/settings_chart_by_distance</item> <item>@string/settings_chart_by_distance</item>
<item>@string/settings_chart_by_time</item> <item>@string/settings_chart_by_time</item>
</string-array> </string-array>
<string-array name="chart_x_axis_values"> <string-array name="chart_x_axis_values">
<item>@string/chart_x_axis_distance</item> <item>@string/chart_x_axis_distance</item>
<item>@string/chart_x_axis_time</item> <item>@string/chart_x_axis_time</item>
</string-array> </string-array>
<string-array name="frequency_values"> <string-array name="frequency_values">
<item>0</item> <item>0</item>
<item>1</item> <item>1</item>
<item>2</item> <item>2</item>
<item>5</item> <item>5</item>
<item>10</item> <item>10</item>
<item>15</item> <item>15</item>
<item>30</item> <item>30</item>
<item>60</item> <item>60</item>
<item>-1</item> <item>-1</item>
<item>-5</item> <item>-5</item>
<item>-10</item> <item>-10</item>
<item>-25</item> <item>-25</item>
<item>-50</item> <item>-50</item>
<item>-100</item> <item>-100</item>
</string-array> </string-array>
<string-array name="max_recording_distance_values"> <string-array name="max_recording_distance_values">
<item>50</item> <item>50</item>
<item>100</item> <item>100</item>
<item>200</item> <item>200</item>
<item>500</item> <item>500</item>
<item>1000</item> <item>1000</item>
<item>5000</item> <item>5000</item>
</string-array> </string-array>
<string-array name="min_recording_interval_values"> <string-array name="min_recording_interval_values">
<item>-2</item> <item>-2</item>
<item>-1</item> <item>-1</item>
<item>0</item> <item>0</item>
<item>2</item> <item>2</item>
<item>3</item> <item>3</item>
<item>4</item> <item>4</item>
<item>5</item> <item>5</item>
<item>10</item> <item>10</item>
<item>20</item> <item>20</item>
<item>30</item> <item>30</item>
<item>60</item> <item>60</item>
<item>120</item> <item>120</item>
<item>300</item> <item>300</item>
<item>480</item> <item>480</item>
<item>900</item> <item>900</item>
<item>1800</item> <item>1800</item>
</string-array> </string-array>
<string-array name="photo_size_values"> <string-array name="photo_size_values">
<item>500</item> <item>500</item>
<item>1024</item> <item>1024</item>
<item>2048</item> <item>2048</item>
<item>-1</item> <item>-1</item>
</string-array> </string-array>
<string-array name="recording_distance_interval_values"> <string-array name="recording_distance_interval_values">
<item>1</item> <item>1</item>
<item>2</item> <item>2</item>
<item>5</item> <item>5</item>
<item>10</item> <item>10</item>
<item>20</item> <item>20</item>
<item>50</item> <item>50</item>
<item>100</item> <item>100</item>
</string-array> </string-array>
<string-array name="recording_gps_accuracy_values"> <string-array name="recording_gps_accuracy_values">
<item>10</item> <item>10</item>
<item>20</item> <item>20</item>
<item>30</item> <item>30</item>
<item>50</item> <item>50</item>
<item>100</item> <item>100</item>
<item>200</item> <item>200</item>
<item>500</item> <item>500</item>
<item>1000</item> <item>1000</item>
<item>2000</item> <item>2000</item>
</string-array> </string-array>
<string-array name="stats_rate_imperial_options"> <string-array name="stats_rate_imperial_options">
<item>@string/description_speed_imperial</item> <item>@string/description_speed_imperial</item>
<item>@string/description_pace_imperial</item> <item>@string/description_pace_imperial</item>
</string-array> </string-array>
<string-array name="stats_rate_metric_options"> <string-array name="stats_rate_metric_options">
<item>@string/description_speed_metric</item> <item>@string/description_speed_metric</item>
<item>@string/description_pace_metric</item> <item>@string/description_pace_metric</item>
</string-array> </string-array>
<string-array name="stats_rate_values"> <string-array name="stats_rate_values">
<item>@string/stats_rate_speed</item> <item>@string/stats_rate_speed</item>
<item>@string/stats_rate_pace</item> <item>@string/stats_rate_pace</item>
</string-array> </string-array>
<string-array name="stats_units_options"> <string-array name="stats_units_options">
<item>@string/settings_stats_units_metric</item> <item>@string/settings_stats_units_metric</item>
<item>@string/settings_stats_units_imperial</item> <item>@string/settings_stats_units_imperial</item>
</string-array> </string-array>
<string-array name="stats_units_values"> <string-array name="stats_units_values">
<item>@string/stats_units_metric</item> <item>@string/stats_units_metric</item>
<item>@string/stats_units_imperial</item> <item>@string/stats_units_imperial</item>
</string-array> </string-array>
<string-array name="track_name_options"> <string-array name="track_name_options">
<item>@string/settings_recording_track_name_location_option</item> <item>@string/settings_recording_track_name_location_option</item>
<item>@string/settings_recording_track_name_date_local_option</item> <item>@string/settings_recording_track_name_date_local_option</item>
<item>@string/settings_recording_track_name_date_iso_8601_option</item> <item>@string/settings_recording_track_name_date_iso_8601_option</item>
<item>@string/settings_recording_track_name_date_iso_8601_location_option</item> <item>@string/settings_recording_track_name_date_iso_8601_location_option</item>
<item>@string/settings_recording_track_name_number_option</item> <item>@string/settings_recording_track_name_number_option</item>
</string-array> </string-array>
<string-array name="track_name_values"> <string-array name="track_name_values">
<item>@string/settings_recording_track_name_location_value</item> <item>@string/settings_recording_track_name_location_value</item>
<item>@string/settings_recording_track_name_date_local_value</item> <item>@string/settings_recording_track_name_date_local_value</item>
<item>@string/settings_recording_track_name_date_iso_8601_value</item> <item>@string/settings_recording_track_name_date_iso_8601_value</item>
<item>@string/settings_recording_track_name_date_iso_8601_location_value</item> <item>@string/settings_recording_track_name_date_iso_8601_location_value</item>
<item>@string/settings_recording_track_name_number_value</item> <item>@string/settings_recording_track_name_number_value</item>
</string-array> </string-array>
<string-array name="waypoint_types"> <string-array name="waypoint_types">
<item>@string/waypoint_type_atm</item> <item>@string/waypoint_type_atm</item>
<item>@string/waypoint_type_bank</item> <item>@string/waypoint_type_bank</item>
<item>@string/waypoint_type_bar</item> <item>@string/waypoint_type_bar</item>
<item>@string/waypoint_type_barbecue</item> <item>@string/waypoint_type_barbecue</item>
<item>@string/waypoint_type_building</item> <item>@string/waypoint_type_building</item>
<item>@string/waypoint_type_bus_stop</item> <item>@string/waypoint_type_bus_stop</item>
<item>@string/waypoint_type_cafe</item> <item>@string/waypoint_type_cafe</item>
<item>@string/waypoint_type_campfire</item> <item>@string/waypoint_type_campfire</item>
<item>@string/waypoint_type_campground</item> <item>@string/waypoint_type_campground</item>
<item>@string/waypoint_type_church</item> <item>@string/waypoint_type_church</item>
<item>@string/waypoint_type_coffee_house</item> <item>@string/waypoint_type_coffee_house</item>
<item>@string/waypoint_type_convenience_store</item> <item>@string/waypoint_type_convenience_store</item>
<item>@string/waypoint_type_drinking_water</item> <item>@string/waypoint_type_drinking_water</item>
<item>@string/waypoint_type_falling_rocks</item> <item>@string/waypoint_type_falling_rocks</item>
<item>@string/waypoint_type_ferry</item> <item>@string/waypoint_type_ferry</item>
<item>@string/waypoint_type_fire_place</item> <item>@string/waypoint_type_fire_place</item>
<item>@string/waypoint_type_fire_station</item> <item>@string/waypoint_type_fire_station</item>
<item>@string/waypoint_type_fishing</item> <item>@string/waypoint_type_fishing</item>
<item>@string/waypoint_type_gas_station</item> <item>@string/waypoint_type_gas_station</item>
<item>@string/waypoint_type_golf_course</item> <item>@string/waypoint_type_golf_course</item>
<item>@string/waypoint_type_grocery_store</item> <item>@string/waypoint_type_grocery_store</item>
<item>@string/waypoint_type_hair_dresser</item> <item>@string/waypoint_type_hair_dresser</item>
<item>@string/waypoint_type_harbor</item> <item>@string/waypoint_type_harbor</item>
<item>@string/waypoint_type_hiking_path</item> <item>@string/waypoint_type_hiking_path</item>
<item>@string/waypoint_type_hotel</item> <item>@string/waypoint_type_hotel</item>
<item>@string/waypoint_type_house</item> <item>@string/waypoint_type_house</item>
<item>@string/waypoint_type_information</item> <item>@string/waypoint_type_information</item>
<item>@string/waypoint_type_intersection</item> <item>@string/waypoint_type_intersection</item>
<item>@string/waypoint_type_mail_box</item> <item>@string/waypoint_type_mail_box</item>
<item>@string/waypoint_type_market</item> <item>@string/waypoint_type_market</item>
<item>@string/waypoint_type_meeting_point</item> <item>@string/waypoint_type_meeting_point</item>
<item>@string/waypoint_type_opera</item> <item>@string/waypoint_type_opera</item>
<item>@string/waypoint_type_parking</item> <item>@string/waypoint_type_parking</item>
<item>@string/waypoint_type_police_station</item> <item>@string/waypoint_type_police_station</item>
<item>@string/waypoint_type_post_office</item> <item>@string/waypoint_type_post_office</item>
<item>@string/waypoint_type_pothole</item> <item>@string/waypoint_type_pothole</item>
<item>@string/waypoint_type_railway_crossing</item> <item>@string/waypoint_type_railway_crossing</item>
<item>@string/waypoint_type_restaurant</item> <item>@string/waypoint_type_restaurant</item>
<item>@string/waypoint_type_shopping</item> <item>@string/waypoint_type_shopping</item>
<item>@string/waypoint_type_sight</item> <item>@string/waypoint_type_sight</item>
<item>@string/waypoint_type_store</item> <item>@string/waypoint_type_store</item>
<item>@string/waypoint_type_swimming_pool</item> <item>@string/waypoint_type_swimming_pool</item>
<item>@string/waypoint_type_telephone</item> <item>@string/waypoint_type_telephone</item>
<item>@string/waypoint_type_theater</item> <item>@string/waypoint_type_theater</item>
<item>@string/waypoint_type_toilet</item> <item>@string/waypoint_type_toilet</item>
<item>@string/waypoint_type_tourist_information</item> <item>@string/waypoint_type_tourist_information</item>
<item>@string/waypoint_type_tree</item> <item>@string/waypoint_type_tree</item>
<item>@string/waypoint_type_tunnel</item> <item>@string/waypoint_type_tunnel</item>
<item>@string/waypoint_type_waterfall</item> <item>@string/waypoint_type_waterfall</item>
<item>@string/waypoint_type_water_fountain</item> <item>@string/waypoint_type_water_fountain</item>
<item>@string/waypoint_type_waypoint</item> <item>@string/waypoint_type_waypoint</item>
</string-array> </string-array>
</resources> </resources>
+25 -26
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,28 +14,28 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<resources> <resources>
<color name="chart_cadence_border">#FFF128F3</color> <!-- pink --> <color name="chart_cadence_border">#FFF128F3</color> <!-- pink -->
<color name="chart_cadence_fill">#40F128F3</color> <!-- transparent pink --> <color name="chart_cadence_fill">#40F128F3</color> <!-- transparent pink -->
<color name="chart_elevation_border">#FF339933</color> <!-- green --> <color name="chart_elevation_border">#FF339933</color> <!-- green -->
<color name="chart_elevation_fill">#40B3CFB3</color> <!-- transparent green --> <color name="chart_elevation_fill">#40B3CFB3</color> <!-- transparent green -->
<color name="chart_heart_rate_border">#FFCC3300</color> <!-- red --> <color name="chart_heart_rate_border">#FFCC3300</color> <!-- red -->
<color name="chart_heart_rate_fill">#40E88A70</color> <!-- transparent red --> <color name="chart_heart_rate_fill">#40E88A70</color> <!-- transparent red -->
<color name="chart_pace_border">#FF0066FF</color> <!-- blue --> <color name="chart_pace_border">#FF0066FF</color> <!-- blue -->
<color name="chart_pace_fill">#40C8E0FF</color> <!-- transparent blue --> <color name="chart_pace_fill">#40C8E0FF</color> <!-- transparent blue -->
<color name="chart_power_border">#FF401465</color> <!-- purple --> <color name="chart_power_border">#FF401465</color> <!-- purple -->
<color name="chart_power_fill">#40401465</color> <!-- transparent purple --> <color name="chart_power_fill">#40401465</color> <!-- transparent purple -->
<color name="chart_speed_border">#FF0066FF</color> <!-- blue --> <color name="chart_speed_border">#FF0066FF</color> <!-- blue -->
<color name="chart_speed_fill">#40C8E0FF</color> <!-- transparent blue --> <color name="chart_speed_fill">#40C8E0FF</color> <!-- transparent blue -->
<color name="holo_orange_dark">#FFFF8800</color> <color name="holo_orange_dark">#FFFF8800</color>
<color name="list_empty_text">#FFCCCCCC</color> <color name="list_empty_text">#FFCCCCCC</color>
<color name="recording_text">#FFBE161B</color> <!-- red --> <color name="recording_text">#FFBE161B</color> <!-- red -->
<color name="stats_large_label">#FFFAAD2C</color> <!-- orange --> <color name="stats_large_label">#FFFAAD2C</color> <!-- orange -->
<color name="stats_separator">#99999999</color> <!-- light gray --> <color name="stats_separator">#99999999</color> <!-- light gray -->
<color name="text_gradient_center">#B2000000</color> <!-- black 70% opacity --> <color name="text_gradient_center">#B2000000</color> <!-- black 70% opacity -->
<color name="text_gradient_end">#00000000</color> <!-- black 0% opacity --> <color name="text_gradient_end">#00000000</color> <!-- black 0% opacity -->
<color name="text_gradient_start">#FF000000</color> <!-- black 100% opacity --> <color name="text_gradient_start">#FF000000</color> <!-- black 100% opacity -->
<color name="track_color_fast">#F7DF0101</color> <!-- red color --> <color name="track_color_fast">#F7DF0101</color> <!-- red color -->
<color name="track_color_normal">#F75858FA</color> <!-- blue color --> <color name="track_color_normal">#F75858FA</color> <!-- blue color -->
<color name="track_color_slow">#F774DF00</color> <!-- green color --> <color name="track_color_slow">#F774DF00</color> <!-- green color -->
<color name="track_controller_background">#FF0E0E0E</color> <!-- dark gray --> <color name="track_controller_background">#FF0E0E0E</color> <!-- dark gray -->
</resources> </resources>
+2 -3
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,5 +14,5 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<resources> <resources>
<dimen name="widget_margin">0dp</dimen> <dimen name="widget_margin">0dp</dimen>
</resources> </resources>
+25 -26
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,28 +14,28 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<resources> <resources>
<!-- DO NOT TRANSLATE ANY STRINGS IN THIS FILE. --> <!-- DO NOT TRANSLATE ANY STRINGS IN THIS FILE. -->
<string name="chart_x_axis_distance" translatable="false">DISTANCE</string> <string name="chart_x_axis_distance" translatable="false">DISTANCE</string>
<string name="chart_x_axis_time" translatable="false">TIME</string> <string name="chart_x_axis_time" translatable="false">TIME</string>
<string name="marker_statistics_icon_url" translatable="false">http://maps.google.com/mapfiles/ms/micons/ylw-pushpin.png</string> <string name="marker_statistics_icon_url" translatable="false">http://maps.google.com/mapfiles/ms/micons/ylw-pushpin.png</string>
<string name="marker_waypoint_icon_url" translatable="false">http://maps.google.com/mapfiles/ms/micons/blue-pushpin.png</string> <string name="marker_waypoint_icon_url" translatable="false">http://maps.google.com/mapfiles/ms/micons/blue-pushpin.png</string>
<string name="app_web_url" translatable="false">TODO</string> <string name="app_web_url" translatable="false">TODO</string>
<string name="permission_notification_value" translatable="false">com.google.android.apps.mytracks.MYTRACKS_NOTIFICATIONS</string> <string name="permission_notification_value" translatable="false">com.google.android.apps.mytracks.MYTRACKS_NOTIFICATIONS</string>
<string name="sensor_type_value_none" translatable="false">NONE</string> <string name="sensor_type_value_none" translatable="false">NONE</string>
<string name="sensor_unit_rounds_per_minute" translatable="false">RPM</string> <string name="sensor_unit_rounds_per_minute" translatable="false">RPM</string>
<string name="sensor_unit_beats_per_minute" translatable="false">BPM</string> <string name="sensor_unit_beats_per_minute" translatable="false">BPM</string>
<string name="settings_recording_track_name_date_iso_8601_value" translatable="false">DATE_ISO_8601</string> <string name="settings_recording_track_name_date_iso_8601_value" translatable="false">DATE_ISO_8601</string>
<string name="settings_recording_track_name_date_iso_8601_location_value" translatable="false">DATE_ISO_8601_LOCATION</string> <string name="settings_recording_track_name_date_iso_8601_location_value" translatable="false">DATE_ISO_8601_LOCATION</string>
<string name="settings_recording_track_name_date_local_value" translatable="false">DATE_LOCAL</string> <string name="settings_recording_track_name_date_local_value" translatable="false">DATE_LOCAL</string>
<string name="settings_recording_track_name_location_value" translatable="false">LOCATION</string> <string name="settings_recording_track_name_location_value" translatable="false">LOCATION</string>
<string name="settings_recording_track_name_number_value" translatable="false">NUMBER</string> <string name="settings_recording_track_name_number_value" translatable="false">NUMBER</string>
<string name="stats_rate_pace" translatable="false">PACE</string> <string name="stats_rate_pace" translatable="false">PACE</string>
<string name="stats_rate_speed" translatable="false">SPEED</string> <string name="stats_rate_speed" translatable="false">SPEED</string>
<string name="stats_units_imperial" translatable="false">IMPERIAL</string> <string name="stats_units_imperial" translatable="false">IMPERIAL</string>
<string name="stats_units_metric" translatable="false">METRIC</string> <string name="stats_units_metric" translatable="false">METRIC</string>
<string name="track_action_end" translatable="false">com.google.android.apps.mytracks.END_CURRENT_TRACK</string> <string name="track_action_end" translatable="false">com.google.android.apps.mytracks.END_CURRENT_TRACK</string>
<string name="track_action_pause" translatable="false">com.google.android.apps.mytracks.PAUSE_CURRENT_TRACK</string> <string name="track_action_pause" translatable="false">com.google.android.apps.mytracks.PAUSE_CURRENT_TRACK</string>
<string name="track_action_resume" translatable="false">com.google.android.apps.mytracks.RESUME_CURRENT_TRACK</string> <string name="track_action_resume" translatable="false">com.google.android.apps.mytracks.RESUME_CURRENT_TRACK</string>
<string name="track_action_start" translatable="false">com.google.android.apps.mytracks.START_NEW_TRACK</string> <string name="track_action_start" translatable="false">com.google.android.apps.mytracks.START_NEW_TRACK</string>
<string name="value_unknown" translatable="false">-</string> <string name="value_unknown" translatable="false">-</string>
</resources> </resources>
+41 -42
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,44 +14,44 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<resources> <resources>
<!-- Keys for persisted preferences. Sorted alphabetically. DO NOT TRANSLATE. --> <!-- Keys for persisted preferences. Sorted alphabetically. DO NOT TRANSLATE. -->
<string name="auto_resume_track_timeout_key" translatable="false">autoResumeTrackTimeout</string> <string name="auto_resume_track_timeout_key" translatable="false">autoResumeTrackTimeout</string>
<string name="chart_show_cadence_key" translatable="false">chartShowCadence</string> <string name="chart_show_cadence_key" translatable="false">chartShowCadence</string>
<string name="chart_show_elevation_key" translatable="false">chartShowElevation</string> <string name="chart_show_elevation_key" translatable="false">chartShowElevation</string>
<string name="chart_show_heart_rate_key" translatable="false">chartShowHeartRate</string> <string name="chart_show_heart_rate_key" translatable="false">chartShowHeartRate</string>
<string name="chart_show_power_key" translatable="false">chartShowPower</string> <string name="chart_show_power_key" translatable="false">chartShowPower</string>
<string name="chart_show_speed_key" translatable="false">chartShowSpeed</string> <string name="chart_show_speed_key" translatable="false">chartShowSpeed</string>
<string name="chart_x_axis_key" translatable="false">chartXAxis</string> <string name="chart_x_axis_key" translatable="false">chartXAxis</string>
<string name="default_activity_key" translatable="false">defaultActivity</string> <string name="default_activity_key" translatable="false">defaultActivity</string>
<string name="max_recording_distance_key" translatable="false">maxRecordingDistance</string> <string name="max_recording_distance_key" translatable="false">maxRecordingDistance</string>
<string name="min_recording_interval_key" translatable="false">minRecordingInterval</string> <string name="min_recording_interval_key" translatable="false">minRecordingInterval</string>
<string name="photo_size_key" translatable="false">photoSize</string> <string name="photo_size_key" translatable="false">photoSize</string>
<string name="recording_distance_interval_key" translatable="false">recordingDistanceInterval</string> <string name="recording_distance_interval_key" translatable="false">recordingDistanceInterval</string>
<string name="recording_gps_accuracy_key" translatable="false">recordingGpsAccuracy</string> <string name="recording_gps_accuracy_key" translatable="false">recordingGpsAccuracy</string>
<string name="split_frequency_key" translatable="false">splitFrequency</string> <string name="split_frequency_key" translatable="false">splitFrequency</string>
<string name="stats_rate_key" translatable="false">statsRate</string> <string name="stats_rate_key" translatable="false">statsRate</string>
<string name="stats_show_coordinate_key" translatable="false">statsShowCoordinate</string> <string name="stats_show_coordinate_key" translatable="false">statsShowCoordinate</string>
<string name="stats_show_grade_elevation_key" translatable="false">statsShowGradeElevation</string> <string name="stats_show_grade_elevation_key" translatable="false">statsShowGradeElevation</string>
<string name="stats_units_key" translatable="false">statsUnits</string> <string name="stats_units_key" translatable="false">statsUnits</string>
<string name="track_name_key" translatable="false">trackName</string> <string name="track_name_key" translatable="false">trackName</string>
<string name="track_widget_item1" translatable="false">trackWidgetItem1</string> <string name="track_widget_item1" translatable="false">trackWidgetItem1</string>
<string name="track_widget_item2" translatable="false">trackWidgetItem2</string> <string name="track_widget_item2" translatable="false">trackWidgetItem2</string>
<string name="track_widget_item3" translatable="false">trackWidgetItem3</string> <string name="track_widget_item3" translatable="false">trackWidgetItem3</string>
<string name="track_widget_item4" translatable="false">trackWidgetItem4</string> <string name="track_widget_item4" translatable="false">trackWidgetItem4</string>
<string name="voice_frequency_key" translatable="false">voiceFrequency</string> <string name="voice_frequency_key" translatable="false">voiceFrequency</string>
<!-- Keys for persistend preferences. But they should not get backed up or restored. --> <!-- Keys for persistend preferences. But they should not get backed up or restored. -->
<string name="auto_resume_track_current_retry_key" translatable="false">autoResumeTrackCurrentRetry</string> <string name="auto_resume_track_current_retry_key" translatable="false">autoResumeTrackCurrentRetry</string>
<string name="bluetooth_sensor_key" translatable="false">bluetoothSensor</string> <string name="bluetooth_sensor_key" translatable="false">bluetoothSensor</string>
<string name="recording_track_id_key" translatable="false">recordingTrackId</string> <string name="recording_track_id_key" translatable="false">recordingTrackId</string>
<string name="recording_track_paused_key" translatable="false">recordingTrackPaused</string> <string name="recording_track_paused_key" translatable="false">recordingTrackPaused</string>
<!-- Keys for non-persisted preferences. Sorted alphabetically. DO NOT TRANSLATE. --> <!-- Keys for non-persisted preferences. Sorted alphabetically. DO NOT TRANSLATE. -->
<string name="settings_advanced_key" translatable="false">settingsAdvanced</string> <string name="settings_advanced_key" translatable="false">settingsAdvanced</string>
<string name="settings_chart_key" translatable="false">settingsChart</string> <string name="settings_chart_key" translatable="false">settingsChart</string>
<string name="settings_recording_key" translatable="false">settingsRecording</string> <string name="settings_recording_key" translatable="false">settingsRecording</string>
<string name="settings_reset_key" translatable="false">settingsReset</string> <string name="settings_reset_key" translatable="false">settingsReset</string>
<string name="settings_sensor_key" translatable="false">settingsSensor</string> <string name="settings_sensor_key" translatable="false">settingsSensor</string>
<string name="settings_sensor_bluetooth_key" translatable="false">settingsSensorBluetooth</string> <string name="settings_sensor_bluetooth_key" translatable="false">settingsSensorBluetooth</string>
<string name="settings_sensor_bluetooth_pairing_key" translatable="false">settingsSensorBluetoothPairing</string> <string name="settings_sensor_bluetooth_pairing_key" translatable="false">settingsSensorBluetoothPairing</string>
<string name="settings_sensor_root_key" translatable="false">settingsSensorRoot</string> <string name="settings_sensor_root_key" translatable="false">settingsSensorRoot</string>
<string name="settings_stats_key" translatable="false">settingsStats</string> <string name="settings_stats_key" translatable="false">settingsStats</string>
</resources> </resources>
+73 -74
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2011 Google Inc. Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,76 +14,76 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<resources> <resources>
<plurals name="files"> <plurals name="files">
<item quantity="zero">@string/files_zero</item> <item quantity="zero">@string/files_zero</item>
<item quantity="one">@string/files_one</item> <item quantity="one">@string/files_one</item>
<item quantity="two">@string/files_two</item> <item quantity="two">@string/files_two</item>
<item quantity="few">@string/files_few</item> <item quantity="few">@string/files_few</item>
<item quantity="many">@string/files_many</item> <item quantity="many">@string/files_many</item>
<item quantity="other">@string/files_other</item> <item quantity="other">@string/files_other</item>
</plurals> </plurals>
<plurals name="tracks"> <plurals name="tracks">
<item quantity="zero">@string/tracks_zero</item> <item quantity="zero">@string/tracks_zero</item>
<item quantity="one">@string/tracks_one</item> <item quantity="one">@string/tracks_one</item>
<item quantity="two">@string/tracks_two</item> <item quantity="two">@string/tracks_two</item>
<item quantity="few">@string/tracks_few</item> <item quantity="few">@string/tracks_few</item>
<item quantity="many">@string/tracks_many</item> <item quantity="many">@string/tracks_many</item>
<item quantity="other">@string/tracks_other</item> <item quantity="other">@string/tracks_other</item>
</plurals> </plurals>
<plurals name="voiceHours"> <plurals name="voiceHours">
<item quantity="zero">@string/voice_hours_zero</item> <item quantity="zero">@string/voice_hours_zero</item>
<item quantity="one">@string/voice_hours_one</item> <item quantity="one">@string/voice_hours_one</item>
<item quantity="two">@string/voice_hours_two</item> <item quantity="two">@string/voice_hours_two</item>
<item quantity="few">@string/voice_hours_few</item> <item quantity="few">@string/voice_hours_few</item>
<item quantity="many">@string/voice_hours_many</item> <item quantity="many">@string/voice_hours_many</item>
<item quantity="other">@string/voice_hours_other</item> <item quantity="other">@string/voice_hours_other</item>
</plurals> </plurals>
<plurals name="voiceMinutes"> <plurals name="voiceMinutes">
<item quantity="zero">@string/voice_minutes_zero</item> <item quantity="zero">@string/voice_minutes_zero</item>
<item quantity="one">@string/voice_minutes_one</item> <item quantity="one">@string/voice_minutes_one</item>
<item quantity="two">@string/voice_minutes_two</item> <item quantity="two">@string/voice_minutes_two</item>
<item quantity="few">@string/voice_minutes_few</item> <item quantity="few">@string/voice_minutes_few</item>
<item quantity="many">@string/voice_minutes_many</item> <item quantity="many">@string/voice_minutes_many</item>
<item quantity="other">@string/voice_minutes_other</item> <item quantity="other">@string/voice_minutes_other</item>
</plurals> </plurals>
<plurals name="voiceSeconds"> <plurals name="voiceSeconds">
<item quantity="zero">@string/voice_seconds_zero</item> <item quantity="zero">@string/voice_seconds_zero</item>
<item quantity="one">@string/voice_seconds_one</item> <item quantity="one">@string/voice_seconds_one</item>
<item quantity="two">@string/voice_seconds_two</item> <item quantity="two">@string/voice_seconds_two</item>
<item quantity="few">@string/voice_seconds_few</item> <item quantity="few">@string/voice_seconds_few</item>
<item quantity="many">@string/voice_seconds_many</item> <item quantity="many">@string/voice_seconds_many</item>
<item quantity="other">@string/voice_seconds_other</item> <item quantity="other">@string/voice_seconds_other</item>
</plurals> </plurals>
<plurals name="voiceSpeedKilometersPerHour"> <plurals name="voiceSpeedKilometersPerHour">
<item quantity="zero">@string/voice_speed_kilometers_per_hour_zero</item> <item quantity="zero">@string/voice_speed_kilometers_per_hour_zero</item>
<item quantity="one">@string/voice_speed_kilometers_per_hour_one</item> <item quantity="one">@string/voice_speed_kilometers_per_hour_one</item>
<item quantity="two">@string/voice_speed_kilometers_per_hour_two</item> <item quantity="two">@string/voice_speed_kilometers_per_hour_two</item>
<item quantity="few">@string/voice_speed_kilometers_per_hour_few</item> <item quantity="few">@string/voice_speed_kilometers_per_hour_few</item>
<item quantity="many">@string/voice_speed_kilometers_per_hour_many</item> <item quantity="many">@string/voice_speed_kilometers_per_hour_many</item>
<item quantity="other">@string/voice_speed_kilometers_per_hour_other</item> <item quantity="other">@string/voice_speed_kilometers_per_hour_other</item>
</plurals> </plurals>
<plurals name="voiceSpeedMilesPerHour"> <plurals name="voiceSpeedMilesPerHour">
<item quantity="zero">@string/voice_speed_miles_per_hour_zero</item> <item quantity="zero">@string/voice_speed_miles_per_hour_zero</item>
<item quantity="one">@string/voice_speed_miles_per_hour_one</item> <item quantity="one">@string/voice_speed_miles_per_hour_one</item>
<item quantity="two">@string/voice_speed_miles_per_hour_two</item> <item quantity="two">@string/voice_speed_miles_per_hour_two</item>
<item quantity="few">@string/voice_speed_miles_per_hour_few</item> <item quantity="few">@string/voice_speed_miles_per_hour_few</item>
<item quantity="many">@string/voice_speed_miles_per_hour_many</item> <item quantity="many">@string/voice_speed_miles_per_hour_many</item>
<item quantity="other">@string/voice_speed_miles_per_hour_other</item> <item quantity="other">@string/voice_speed_miles_per_hour_other</item>
</plurals> </plurals>
<plurals name="voiceTotalDistanceKilometers"> <plurals name="voiceTotalDistanceKilometers">
<item quantity="zero">@string/voice_total_distance_kilometers_zero</item> <item quantity="zero">@string/voice_total_distance_kilometers_zero</item>
<item quantity="one">@string/voice_total_distance_kilometers_one</item> <item quantity="one">@string/voice_total_distance_kilometers_one</item>
<item quantity="two">@string/voice_total_distance_kilometers_two</item> <item quantity="two">@string/voice_total_distance_kilometers_two</item>
<item quantity="few">@string/voice_total_distance_kilometers_few</item> <item quantity="few">@string/voice_total_distance_kilometers_few</item>
<item quantity="many">@string/voice_total_distance_kilometers_many</item> <item quantity="many">@string/voice_total_distance_kilometers_many</item>
<item quantity="other">@string/voice_total_distance_kilometers_other</item> <item quantity="other">@string/voice_total_distance_kilometers_other</item>
</plurals> </plurals>
<plurals name="voiceTotalDistanceMiles"> <plurals name="voiceTotalDistanceMiles">
<item quantity="zero">@string/voice_total_distance_miles_zero</item> <item quantity="zero">@string/voice_total_distance_miles_zero</item>
<item quantity="one">@string/voice_total_distance_miles_one</item> <item quantity="one">@string/voice_total_distance_miles_one</item>
<item quantity="two">@string/voice_total_distance_miles_two</item> <item quantity="two">@string/voice_total_distance_miles_two</item>
<item quantity="few">@string/voice_total_distance_miles_few</item> <item quantity="few">@string/voice_total_distance_miles_few</item>
<item quantity="many">@string/voice_total_distance_miles_many</item> <item quantity="many">@string/voice_total_distance_miles_many</item>
<item quantity="other">@string/voice_total_distance_miles_other</item> <item quantity="other">@string/voice_total_distance_miles_other</item>
</plurals> </plurals>
</resources> </resources>
File diff suppressed because it is too large Load Diff
+453 -438
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,440 +14,456 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="ActionBarStyleCustom" parent="@android:style/Widget.Holo.ActionBar">
<!-- Same image as the source except using a grey line instead of a blue line --> <style name="ActionBarStyleCustom" parent="@android:style/Widget.Holo.ActionBar">
<item name="android:background">@drawable/ab_transparent_dark_holo</item> <!-- Same image as the source except using a grey line instead of a blue line -->
</style> <item name="android:background">@drawable/ab_transparent_dark_holo</item>
<style name="BottomButton" parent="@android:style/Widget.Holo.Button.Borderless"> </style>
<!-- Same as BottomButton in values/styles.xml except inheriting from Widget.Holo.Button.Borderles. -->
<item name="android:layout_height">wrap_content</item> <style name="BottomButton" parent="@android:style/Widget.Holo.Button.Borderless">
<item name="android:layout_weight">1</item> <!-- Same as BottomButton in values/styles.xml except inheriting from Widget.Holo.Button.Borderles. -->
<item name="android:layout_width">0dp</item> <item name="android:layout_height">wrap_content</item>
<item name="android:maxLines">2</item> <item name="android:layout_weight">1</item>
</style> <item name="android:layout_width">0dp</item>
<style name="BottomButtonBar" parent="@android:style/Holo.ButtonBar"> <item name="android:maxLines">2</item>
<!-- </style>
Same as BottomButtonBar in values/styles.xml except inheriting from Holo.ButtonBar and
adding measureWithLargestChild. <style name="BottomButtonBar" parent="@android:style/Holo.ButtonBar">
--> <!--
<item name="android:layout_height">wrap_content</item> Same as BottomButtonBar in values/styles.xml except inheriting from Holo.ButtonBar and
<item name="android:layout_width">match_parent</item> adding measureWithLargestChild.
<item name="android:measureWithLargestChild">true</item> -->
</style> <item name="android:layout_height">wrap_content</item>
<style name="BottomButtonDivider"> <item name="android:layout_width">match_parent</item>
<item name="android:background">?android:attr/dividerVertical</item> <item name="android:measureWithLargestChild">true</item>
<item name="android:layout_height">1dp</item> </style>
<item name="android:layout_marginLeft">4dp</item>
<item name="android:layout_marginRight">4dp</item> <style name="BottomButtonDivider">
<item name="android:layout_width">match_parent</item> <item name="android:background">?android:attr/dividerVertical</item>
</style> <item name="android:layout_height">1dp</item>
<!-- edit category --> <item name="android:layout_marginLeft">4dp</item>
<style name="EditCategory" parent="@style/TextMedium"> <item name="android:layout_marginRight">4dp</item>
<item name="android:completionThreshold">1</item> <item name="android:layout_width">match_parent</item>
<item name="android:gravity">bottom</item> </style>
<item name="android:layout_gravity">bottom</item> <!-- edit category -->
<item name="android:layout_width">match_parent</item> <style name="EditCategory" parent="@style/TextMedium">
<item name="android:selectAllOnFocus">true</item> <item name="android:completionThreshold">1</item>
<item name="android:singleLine">true</item> <item name="android:gravity">bottom</item>
</style> <item name="android:layout_gravity">bottom</item>
<!-- edit description --> <item name="android:layout_width">match_parent</item>
<style name="EditDescription" parent="@style/TextMedium"> <item name="android:selectAllOnFocus">true</item>
<item name="android:inputType">textAutoCorrect|textCapSentences|textMultiLine</item> <item name="android:singleLine">true</item>
<item name="android:layout_width">match_parent</item> </style>
<item name="android:maxLines">50</item> <!-- edit description -->
<item name="android:selectAllOnFocus">true</item> <style name="EditDescription" parent="@style/TextMedium">
<item name="android:singleLine">false</item> <item name="android:inputType">textAutoCorrect|textCapSentences|textMultiLine</item>
</style> <item name="android:layout_width">match_parent</item>
<!-- edit label --> <item name="android:maxLines">50</item>
<style name="EditLabel" parent="@style/TextMedium"> <item name="android:selectAllOnFocus">true</item>
<item name="android:layout_width">match_parent</item> <item name="android:singleLine">false</item>
</style> </style>
<!-- edit label with icon --> <!-- edit label -->
<style name="EditLabel.WithIcon" parent="@style/TextMedium.WithIcon"> <style name="EditLabel" parent="@style/TextMedium">
<item name="android:layout_width">match_parent</item> <item name="android:layout_width">match_parent</item>
</style> </style>
<!-- edit label with padding top --> <!-- edit label with icon -->
<style name="EditLabel.WithPaddingTop"> <style name="EditLabel.WithIcon" parent="@style/TextMedium.WithIcon">
<item name="android:paddingTop">16dp</item> <item name="android:layout_width">match_parent</item>
</style> </style>
<!-- edit name marker --> <!-- edit label with padding top -->
<style name="EditNameMarker" parent="@style/TextMedium.WithIcon"> <style name="EditLabel.WithPaddingTop">
<item name="android:inputType">textAutoCorrect|textCapWords</item> <item name="android:paddingTop">16dp</item>
<item name="android:layout_width">match_parent</item> </style>
<item name="android:selectAllOnFocus">true</item> <!-- edit name marker -->
<item name="android:singleLine">true</item> <style name="EditNameMarker" parent="@style/TextMedium.WithIcon">
</style> <item name="android:inputType">textAutoCorrect|textCapWords</item>
<!-- edit name track --> <item name="android:layout_width">match_parent</item>
<style name="EditNameTrack" parent="@style/TextMedium"> <item name="android:selectAllOnFocus">true</item>
<item name="android:inputType">textAutoCorrect|textCapWords</item> <item name="android:singleLine">true</item>
<item name="android:layout_width">match_parent</item> </style>
<item name="android:selectAllOnFocus">true</item> <!-- edit name track -->
<item name="android:singleLine">true</item> <style name="EditNameTrack" parent="@style/TextMedium">
</style> <item name="android:inputType">textAutoCorrect|textCapWords</item>
<!-- export radio group --> <item name="android:layout_width">match_parent</item>
<style name="ExportRadioGroup"> <item name="android:selectAllOnFocus">true</item>
<item name="android:layout_height">wrap_content</item> <item name="android:singleLine">true</item>
<item name="android:layout_marginBottom">8dp</item> </style>
<item name="android:layout_marginLeft">20dp</item> <!-- export radio group -->
<item name="android:layout_width">match_parent</item> <style name="ExportRadioGroup">
</style> <item name="android:layout_height">wrap_content</item>
<!-- help answer --> <item name="android:layout_marginBottom">8dp</item>
<style name="HelpAnswer" parent="@style/TextSmall"> <item name="android:layout_marginLeft">20dp</item>
<item name="android:autoLink">web</item> <item name="android:layout_width">match_parent</item>
<item name="android:paddingBottom">8dp</item> </style>
</style> <!-- help answer -->
<!-- help question --> <style name="HelpAnswer" parent="@style/TextSmall">
<style name="HelpQuestion" parent="@style/TextMedium"> <item name="android:autoLink">web</item>
<item name="android:paddingTop">8dp</item> <item name="android:paddingBottom">8dp</item>
<item name="android:textStyle">bold</item> </style>
</style> <!-- help question -->
<!-- list empty text view --> <style name="HelpQuestion" parent="@style/TextMedium">
<style name="ListEmptyTextView" parent="@style/TextLarge"> <item name="android:paddingTop">8dp</item>
<item name="android:gravity">center</item> <item name="android:textStyle">bold</item>
<item name="android:layout_gravity">center</item> </style>
<item name="android:padding">8dp</item> <!-- list empty text view -->
<item name="android:textColor">@color/list_empty_text</item> <style name="ListEmptyTextView" parent="@style/TextLarge">
</style> <item name="android:gravity">center</item>
<style name="ListItem"> <item name="android:layout_gravity">center</item>
<item name="android:background">?android:attr/activatedBackgroundIndicator</item> <item name="android:padding">8dp</item>
</style> <item name="android:textColor">@color/list_empty_text</item>
<style name="ListItemDate" parent="@style/TextSmall"> </style>
<item name="android:gravity">right</item>
<item name="android:layout_gravity">bottom</item> <style name="ListItem">
<item name="android:paddingLeft">8dp</item> <item name="android:background">?android:attr/activatedBackgroundIndicator</item>
<item name="android:singleLine">true</item> </style>
</style>
<!-- scroll view --> <style name="ListItemDate" parent="@style/TextSmall">
<style name="ScrollView"> <item name="android:gravity">right</item>
<item name="android:layout_height">match_parent</item> <item name="android:layout_gravity">bottom</item>
<item name="android:layout_width">match_parent</item> <item name="android:paddingLeft">8dp</item>
<item name="android:scrollbarStyle">outsideInset</item> <item name="android:singleLine">true</item>
</style> </style>
<!-- scroll view with bottom buttons --> <!-- scroll view -->
<style name="ScrollView.WithBottomButtons"> <style name="ScrollView">
<item name="android:layout_height">0dp</item> <item name="android:layout_height">match_parent</item>
<item name="android:layout_weight">1</item> <item name="android:layout_width">match_parent</item>
</style> <item name="android:scrollbarStyle">outsideInset</item>
<!-- sensor state value --> </style>
<style name="SensorStateValue" parent="@style/TextLarge"> <!-- scroll view with bottom buttons -->
<item name="android:background">@android:color/background_light</item> <style name="ScrollView.WithBottomButtons">
<item name="android:gravity">right</item> <item name="android:layout_height">0dp</item>
<item name="android:layout_width">match_parent</item> <item name="android:layout_weight">1</item>
<item name="android:paddingRight">8dp</item> </style>
<item name="android:textColor">@android:color/primary_text_light</item> <!-- sensor state value -->
</style> <style name="SensorStateValue" parent="@style/TextLarge">
<!-- stats horizontal line --> <item name="android:background">@android:color/background_light</item>
<style name="StatsHorizontalLine"> <item name="android:gravity">right</item>
<item name="android:background">@color/stats_separator</item> <item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item> <item name="android:paddingRight">8dp</item>
<item name="android:layout_marginLeft">8dp</item> <item name="android:textColor">@android:color/primary_text_light</item>
<item name="android:layout_marginRight">8dp</item> </style>
<item name="android:layout_width">match_parent</item> <!-- stats horizontal line -->
</style> <style name="StatsHorizontalLine">
<!-- stats large item container --> <item name="android:background">@color/stats_separator</item>
<style name="StatsLargeItemContainer"> <item name="android:layout_height">1dp</item>
<item name="android:layout_gravity">center</item> <item name="android:layout_marginLeft">8dp</item>
<item name="android:layout_height">wrap_content</item> <item name="android:layout_marginRight">8dp</item>
<item name="android:layout_weight">1</item> <item name="android:layout_width">match_parent</item>
<item name="android:layout_width">0dp</item> </style>
<item name="android:orientation">vertical</item> <!-- stats large item container -->
<item name="android:paddingBottom">6dp</item> <style name="StatsLargeItemContainer">
<item name="android:paddingTop">6dp</item> <item name="android:layout_gravity">center</item>
</style> <item name="android:layout_height">wrap_content</item>
<style name="StatsLargeLabel" parent="@style/TextSmall"> <item name="android:layout_weight">1</item>
<!-- same as StatsLargeLabel in values/styles.xml except adding textAllCaps --> <item name="android:layout_width">0dp</item>
<item name="android:gravity">center</item> <item name="android:orientation">vertical</item>
<item name="android:layout_gravity">center</item> <item name="android:paddingBottom">6dp</item>
<item name="android:singleLine">false</item> <item name="android:paddingTop">6dp</item>
<item name="android:textAllCaps">true</item> </style>
<item name="android:textColor">@color/stats_large_label</item>
<item name="android:textStyle">bold</item> <style name="StatsLargeLabel" parent="@style/TextSmall">
</style> <!-- same as StatsLargeLabel in values/styles.xml except adding textAllCaps -->
<style name="StatsLargeValue"> <item name="android:gravity">center</item>
<item name="android:layout_gravity">bottom</item> <item name="android:layout_gravity">center</item>
<item name="android:layout_height">wrap_content</item> <item name="android:singleLine">false</item>
<item name="android:layout_width">wrap_content</item> <item name="android:textAllCaps">true</item>
<item name="android:singleLine">true</item> <item name="android:textColor">@color/stats_large_label</item>
<item name="android:textColor">@android:color/white</item> <item name="android:textStyle">bold</item>
<item name="android:textSize">32sp</item> </style>
<item name="android:textStyle">bold</item>
</style> <style name="StatsLargeValue">
<!-- stats large value container --> <item name="android:layout_gravity">bottom</item>
<style name="StatsLargeValueContainer"> <item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">center</item> <item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item> <item name="android:singleLine">true</item>
<item name="android:layout_marginTop">-4dp</item> <item name="android:textColor">@android:color/white</item>
<item name="android:layout_width">wrap_content</item> <item name="android:textSize">32sp</item>
</style> <item name="android:textStyle">bold</item>
<!-- stats scroll view --> </style>
<style name="StatsScrollView" parent="@style/ScrollView"> <!-- stats large value container -->
<item name="android:scrollbarStyle">outsideOverlay</item> <style name="StatsLargeValueContainer">
</style> <item name="android:layout_gravity">center</item>
<!-- stats small group container --> <item name="android:layout_height">wrap_content</item>
<style name="StatsSmallGroupContainer" parent="@style/StatsLargeItemContainer"> <item name="android:layout_marginTop">-4dp</item>
<item name="android:layout_gravity">top|center</item> <item name="android:layout_width">wrap_content</item>
<item name="android:paddingTop">12dp</item> </style>
</style> <!-- stats scroll view -->
<!-- stats small item container, for placing inside StatsSmallGroupContainer --> <style name="StatsScrollView" parent="@style/ScrollView">
<style name="StatsSmallItemContainer" parent="@style/StatsLargeItemContainer"> <item name="android:scrollbarStyle">outsideOverlay</item>
<item name="android:paddingTop">12dp</item> </style>
</style> <!-- stats small group container -->
<style name="StatsSmallLabel" parent="@style/TextSmall"> <style name="StatsSmallGroupContainer" parent="@style/StatsLargeItemContainer">
<!-- same as StatsSmallLabel in values/styles.xml except adding textAllCaps --> <item name="android:layout_gravity">top|center</item>
<item name="android:gravity">center</item> <item name="android:paddingTop">12dp</item>
<item name="android:layout_gravity">center</item> </style>
<item name="android:singleLine">false</item> <!-- stats small item container, for placing inside StatsSmallGroupContainer -->
<item name="android:textAllCaps">true</item> <style name="StatsSmallItemContainer" parent="@style/StatsLargeItemContainer">
<item name="android:textStyle">bold</item> <item name="android:paddingTop">12dp</item>
</style> </style>
<!-- stats small value -->
<style name="StatsSmallValue" parent="@style/TextLarge"> <style name="StatsSmallLabel" parent="@style/TextSmall">
<item name="android:layout_gravity">bottom</item> <!-- same as StatsSmallLabel in values/styles.xml except adding textAllCaps -->
<item name="android:singleLine">true</item> <item name="android:gravity">center</item>
<item name="android:textColor">@android:color/white</item> <item name="android:layout_gravity">center</item>
</style> <item name="android:singleLine">false</item>
<!-- stats small value --> <item name="android:textAllCaps">true</item>
<style name="StatsTinyValue" parent="@style/TextSmall"> <item name="android:textStyle">bold</item>
<item name="android:layout_gravity">bottom</item> </style>
<item name="android:singleLine">true</item> <!-- stats small value -->
<item name="android:textColor">@android:color/white</item> <style name="StatsSmallValue" parent="@style/TextLarge">
</style> <item name="android:layout_gravity">bottom</item>
<!-- stats small value container --> <item name="android:singleLine">true</item>
<style name="StatsSmallValueContainer" parent="@style/StatsLargeValueContainer"> <item name="android:textColor">@android:color/white</item>
<item name="android:layout_marginTop">-2dp</item> </style>
</style> <!-- stats small value -->
<!-- stats unit --> <style name="StatsTinyValue" parent="@style/TextSmall">
<style name="StatsUnit" parent="@style/TextSmall"> <item name="android:layout_gravity">bottom</item>
<item name="android:layout_gravity">bottom</item> <item name="android:singleLine">true</item>
<item name="android:paddingLeft">4dp</item> <item name="android:textColor">@android:color/white</item>
<item name="android:singleLine">true</item> </style>
</style> <!-- stats small value container -->
<style name="Text"> <style name="StatsSmallValueContainer" parent="@style/StatsLargeValueContainer">
<item name="android:layout_height">wrap_content</item> <item name="android:layout_marginTop">-2dp</item>
<item name="android:layout_width">wrap_content</item> </style>
<item name="android:textColor">@android:color/white</item> <!-- stats unit -->
</style> <style name="StatsUnit" parent="@style/TextSmall">
<style name="TextChooseActivity"> <item name="android:layout_gravity">bottom</item>
<!-- Same as TextChooseActivity in values/styles.xml except removing textSize and using textAppearance --> <item name="android:paddingLeft">4dp</item>
<item name="android:textAppearance">?android:attr/textAppearanceListItemSmall</item> <item name="android:singleLine">true</item>
</style> </style>
<style name="TextLarge" parent="@android:style/TextAppearance.Holo.Large">
<!-- same as TextLarge in values/styles.xml except inheriting from a parent instead of specifying textSize --> <style name="Text">
<item name="android:layout_height">wrap_content</item> <item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item> <item name="android:layout_width">wrap_content</item>
</style> <item name="android:textColor">@android:color/white</item>
<style name="TextMedium" parent="@android:style/TextAppearance.Holo.Medium"> </style>
<!-- same as TextMedium in values/styles.xml except inheriting from a parent instead of specifying textSize -->
<item name="android:layout_height">wrap_content</item> <style name="TextChooseActivity">
<item name="android:layout_width">wrap_content</item> <!-- Same as TextChooseActivity in values/styles.xml except removing textSize and using textAppearance -->
</style> <item name="android:textAppearance">?android:attr/textAppearanceListItemSmall</item>
<!-- text medium with icon --> </style>
<style name="TextMedium.WithIcon">
<item name="android:drawablePadding">8dp</item> <style name="TextLarge" parent="@android:style/TextAppearance.Holo.Large">
<item name="android:gravity">center_vertical</item> <!-- same as TextLarge in values/styles.xml except inheriting from a parent instead of specifying textSize -->
</style> <item name="android:layout_height">wrap_content</item>
<!-- text micro --> <item name="android:layout_width">wrap_content</item>
<style name="TextMicro" parent="@style/Text"> </style>
<item name="android:textSize">12sp</item>
</style> <style name="TextMedium" parent="@android:style/TextAppearance.Holo.Medium">
<style name="TextSmall" parent="@android:style/TextAppearance.Holo.Small"> <!-- same as TextMedium in values/styles.xml except inheriting from a parent instead of specifying textSize -->
<!-- same as TextSmall in values/styles.xml except inheriting from a parent instead of specifying textSize --> <item name="android:layout_height">wrap_content</item>
<item name="android:layout_height">wrap_content</item> <item name="android:layout_width">wrap_content</item>
<item name="android:layout_width">wrap_content</item> </style>
</style> <!-- text medium with icon -->
<!-- track widget bounding box --> <style name="TextMedium.WithIcon">
<style name="TrackWidgetBoundingBox"> <item name="android:drawablePadding">8dp</item>
<item name="android:background">@drawable/track_widget_background</item> <item name="android:gravity">center_vertical</item>
<item name="android:layout_height">match_parent</item> </style>
<item name="android:layout_width">match_parent</item> <!-- text micro -->
<item name="android:padding">@dimen/widget_margin</item> <style name="TextMicro" parent="@style/Text">
</style> <item name="android:textSize">12sp</item>
<!-- track widget button --> </style>
<style name="TrackWidgetButton">
<item name="android:background">@android:color/transparent</item> <style name="TextSmall" parent="@android:style/TextAppearance.Holo.Small">
<item name="android:layout_gravity">center_vertical</item> <!-- same as TextSmall in values/styles.xml except inheriting from a parent instead of specifying textSize -->
<item name="android:layout_height">63dp</item> <item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">63dp</item> <item name="android:layout_width">wrap_content</item>
<item name="android:scaleType">fitXY</item> </style>
</style> <!-- track widget bounding box -->
<!-- track widget button container --> <style name="TrackWidgetBoundingBox">
<style name="TrackWidgetButtonContainer"> <item name="android:background">@drawable/track_widget_background</item>
<item name="android:gravity">center_vertical</item> <item name="android:layout_height">match_parent</item>
<item name="android:layout_height">0dp</item> <item name="android:layout_width">match_parent</item>
<item name="android:layout_weight">1</item> <item name="android:padding">@dimen/widget_margin</item>
<item name="android:layout_width">match_parent</item> </style>
<item name="android:paddingBottom">4dp</item> <!-- track widget button -->
<item name="android:paddingTop">4dp</item> <style name="TrackWidgetButton">
</style> <item name="android:background">@android:color/transparent</item>
<!-- track widget config spiner --> <item name="android:layout_gravity">center_vertical</item>
<style name="TrackWidgetConfigSpinner"> <item name="android:layout_height">63dp</item>
<item name="android:layout_gravity">center_horizontal</item> <item name="android:layout_width">63dp</item>
<item name="android:layout_height">wrap_content</item> <item name="android:scaleType">fitXY</item>
<item name="android:layout_margin">8dp</item> </style>
<item name="android:layout_width">match_parent</item> <!-- track widget button container -->
</style> <style name="TrackWidgetButtonContainer">
<!-- Track widget frame --> <item name="android:gravity">center_vertical</item>
<style name="TrackWidgetFrame"> <item name="android:layout_height">0dp</item>
<item name="android:layout_alignParentTop">true</item> <item name="android:layout_weight">1</item>
<item name="android:layout_height">match_parent</item> <item name="android:layout_width">match_parent</item>
<item name="android:layout_width">match_parent</item> <item name="android:paddingBottom">4dp</item>
<item name="android:orientation">vertical</item> <item name="android:paddingTop">4dp</item>
</style> </style>
<!-- track widget horizontal line --> <!-- track widget config spiner -->
<style name="TrackWidgetHorizontalLine"> <style name="TrackWidgetConfigSpinner">
<item name="android:background">@color/stats_separator</item> <item name="android:layout_gravity">center_horizontal</item>
<item name="android:layout_height">1dp</item> <item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">0dp</item> <item name="android:layout_margin">8dp</item>
</style> <item name="android:layout_width">match_parent</item>
<!-- track widget horizontal spacer --> </style>
<style name="TrackWidgetHorizontalSpacer"> <!-- Track widget frame -->
<item name="android:layout_height">1dp</item> <style name="TrackWidgetFrame">
<item name="android:layout_width">0dp</item> <item name="android:layout_alignParentTop">true</item>
</style> <item name="android:layout_height">match_parent</item>
<!-- track widget horizontal separator --> <item name="android:layout_width">match_parent</item>
<style name="TrackWidgetHorizontalSeparator"> <item name="android:orientation">vertical</item>
<item name="android:layout_height">wrap_content</item> </style>
<item name="android:layout_width">match_parent</item> <!-- track widget horizontal line -->
</style> <style name="TrackWidgetHorizontalLine">
<!-- track widget item container --> <item name="android:background">@color/stats_separator</item>
<style name="TrackWidgetItemContainer"> <item name="android:layout_height">1dp</item>
<item name="android:layout_gravity">center_horizontal</item> <item name="android:layout_width">0dp</item>
<item name="android:layout_height">wrap_content</item> </style>
<item name="android:layout_weight">1</item> <!-- track widget horizontal spacer -->
<item name="android:layout_width">0dp</item> <style name="TrackWidgetHorizontalSpacer">
<item name="android:orientation">vertical</item> <item name="android:layout_height">1dp</item>
<item name="android:paddingBottom">2dp</item> <item name="android:layout_width">0dp</item>
<item name="android:paddingTop">2dp</item> </style>
</style> <!-- track widget horizontal separator -->
<!-- track widget item container 4x2 --> <style name="TrackWidgetHorizontalSeparator">
<style name="TrackWidgetItemContainer4x2" parent="@style/TrackWidgetItemContainer"> <item name="android:layout_height">wrap_content</item>
<item name="android:paddingBottom">4dp</item> <item name="android:layout_width">match_parent</item>
<item name="android:paddingTop">4dp</item> </style>
</style> <!-- track widget item container -->
<!-- track widget item container 4x3 --> <style name="TrackWidgetItemContainer">
<style name="TrackWidgetItemContainer4x3" parent="@style/TrackWidgetItemContainer"> <item name="android:layout_gravity">center_horizontal</item>
<item name="android:paddingBottom">6dp</item> <item name="android:layout_height">wrap_content</item>
<item name="android:paddingTop">12dp</item> <item name="android:layout_weight">1</item>
</style> <item name="android:layout_width">0dp</item>
<!-- track widget item container 4x4 --> <item name="android:orientation">vertical</item>
<style name="TrackWidgetItemContainer4x4" parent="@style/TrackWidgetItemContainer"> <item name="android:paddingBottom">2dp</item>
<item name="android:paddingBottom">12dp</item> <item name="android:paddingTop">2dp</item>
<item name="android:paddingTop">12dp</item> </style>
</style> <!-- track widget item container 4x2 -->
<style name="TrackWidgetLabel"> <style name="TrackWidgetItemContainer4x2" parent="@style/TrackWidgetItemContainer">
<!-- same as TrackWidgetLabel in values/styles.xml except adding textAllCaps --> <item name="android:paddingBottom">4dp</item>
<item name="android:layout_gravity">center_horizontal</item> <item name="android:paddingTop">4dp</item>
<item name="android:layout_height">wrap_content</item> </style>
<item name="android:layout_width">wrap_content</item> <!-- track widget item container 4x3 -->
<item name="android:singleLine">true</item> <style name="TrackWidgetItemContainer4x3" parent="@style/TrackWidgetItemContainer">
<item name="android:textColor">@color/stats_large_label</item> <item name="android:paddingBottom">6dp</item>
<item name="android:textSize">10dp</item> <item name="android:paddingTop">12dp</item>
<item name="android:textStyle">bold</item> </style>
<item name="android:textAllCaps">true</item> <!-- track widget item container 4x4 -->
</style> <style name="TrackWidgetItemContainer4x4" parent="@style/TrackWidgetItemContainer">
<style name="TrackWidgetLabel4x4" parent="@style/TrackWidgetLabel"> <item name="android:paddingBottom">12dp</item>
<item name="android:textSize">14dp</item> <item name="android:paddingTop">12dp</item>
</style> </style>
<!-- track widget logo -->
<style name="TrackWidgetLogo"> <style name="TrackWidgetLabel">
<item name="android:layout_alignParentRight">true</item> <!-- same as TrackWidgetLabel in values/styles.xml except adding textAllCaps -->
<item name="android:layout_alignParentTop">true</item> <item name="android:layout_gravity">center_horizontal</item>
<item name="android:layout_height">24dp</item> <item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">24dp</item> <item name="android:layout_width">wrap_content</item>
<item name="android:padding">4dp</item> <item name="android:singleLine">true</item>
<item name="android:scaleType">fitXY</item> <item name="android:textColor">@color/stats_large_label</item>
<item name="android:src">@drawable/ic_logo</item> <item name="android:textSize">10dp</item>
</style> <item name="android:textStyle">bold</item>
<!-- track widget logo 4x4 --> <item name="android:textAllCaps">true</item>
<style name="TrackWidgetLogo4x4" parent="@style/TrackWidgetLogo"> </style>
<item name="android:layout_height">30dp</item>
<item name="android:layout_width">30dp</item> <style name="TrackWidgetLabel4x4" parent="@style/TrackWidgetLabel">
</style> <item name="android:textSize">14dp</item>
<!-- track widget record status --> </style>
<style name="TrackWidgetRecordStatus" parent="@style/TextSmall"> <!-- track widget logo -->
<item name="android:layout_gravity">center_vertical</item> <style name="TrackWidgetLogo">
<item name="android:layout_height">wrap_content</item> <item name="android:layout_alignParentRight">true</item>
<item name="android:layout_marginLeft">8dp</item> <item name="android:layout_alignParentTop">true</item>
<item name="android:layout_weight">2</item> <item name="android:layout_height">24dp</item>
<item name="android:layout_width">0dp</item> <item name="android:layout_width">24dp</item>
<item name="android:singleLine">true</item> <item name="android:padding">4dp</item>
</style> <item name="android:scaleType">fitXY</item>
<!-- track widget stats container --> <item name="android:src">@drawable/ic_logo</item>
<style name="TrackWidgetStatsContainer"> </style>
<item name="android:clickable">true</item> <!-- track widget logo 4x4 -->
<item name="android:layout_height">0dp</item> <style name="TrackWidgetLogo4x4" parent="@style/TrackWidgetLogo">
<item name="android:layout_width">match_parent</item> <item name="android:layout_height">30dp</item>
<item name="android:orientation">vertical</item> <item name="android:layout_width">30dp</item>
<item name="android:padding">4dp</item> </style>
</style> <!-- track widget record status -->
<!-- track widget stats section --> <style name="TrackWidgetRecordStatus" parent="@style/TextSmall">
<style name="TrackWidgetStatsSection"> <item name="android:layout_gravity">center_vertical</item>
<item name="android:gravity">center_vertical</item> <item name="android:layout_height">wrap_content</item>
<item name="android:layout_height">0dp</item> <item name="android:layout_marginLeft">8dp</item>
<item name="android:layout_weight">1</item> <item name="android:layout_weight">2</item>
<item name="android:layout_width">match_parent</item> <item name="android:layout_width">0dp</item>
</style> <item name="android:singleLine">true</item>
<!-- track widget unit --> </style>
<style name="TrackWidgetUnit"> <!-- track widget stats container -->
<item name="android:layout_height">wrap_content</item> <style name="TrackWidgetStatsContainer">
<item name="android:layout_weight">1</item> <item name="android:clickable">true</item>
<item name="android:layout_width">0dp</item> <item name="android:layout_height">0dp</item>
<item name="android:paddingLeft">4dp</item> <item name="android:layout_width">match_parent</item>
<item name="android:singleLine">true</item> <item name="android:orientation">vertical</item>
<item name="android:textSize">10dp</item> <item name="android:padding">4dp</item>
</style> </style>
<!-- track widget unit 4x3 --> <!-- track widget stats section -->
<style name="TrackWidgetUnit4x3" parent="@style/TrackWidgetUnit"> <style name="TrackWidgetStatsSection">
<item name="android:textSize">14dp</item> <item name="android:gravity">center_vertical</item>
</style> <item name="android:layout_height">0dp</item>
<!-- track widget unit 4x4 --> <item name="android:layout_weight">1</item>
<style name="TrackWidgetUnit4x4" parent="@style/TrackWidgetUnit"> <item name="android:layout_width">match_parent</item>
<item name="android:textSize">18dp</item> </style>
</style> <!-- track widget unit -->
<!-- track widget value --> <style name="TrackWidgetUnit">
<style name="TrackWidgetValue"> <item name="android:layout_height">wrap_content</item>
<item name="android:layout_height">wrap_content</item> <item name="android:layout_weight">1</item>
<item name="android:layout_weight">2</item> <item name="android:layout_width">0dp</item>
<item name="android:layout_width">0dp</item> <item name="android:paddingLeft">4dp</item>
<item name="android:singleLine">true</item> <item name="android:singleLine">true</item>
<item name="android:textColor">@android:color/white</item> <item name="android:textSize">10dp</item>
<item name="android:textSize">18dp</item> </style>
<item name="android:textStyle">bold</item> <!-- track widget unit 4x3 -->
</style> <style name="TrackWidgetUnit4x3" parent="@style/TrackWidgetUnit">
<!-- track widget value 4x3 --> <item name="android:textSize">14dp</item>
<style name="TrackWidgetValue4x3" parent="@style/TrackWidgetValue"> </style>
<item name="android:textSize">28dp</item> <!-- track widget unit 4x4 -->
</style> <style name="TrackWidgetUnit4x4" parent="@style/TrackWidgetUnit">
<!-- track widget value 4x4 --> <item name="android:textSize">18dp</item>
<style name="TrackWidgetValue4x4" parent="@style/TrackWidgetValue"> </style>
<item name="android:textSize">36dp</item> <!-- track widget value -->
</style> <style name="TrackWidgetValue">
<!-- track widget value container --> <item name="android:layout_height">wrap_content</item>
<style name="TrackWidgetValueContainer"> <item name="android:layout_weight">2</item>
<item name="android:layout_gravity">center_horizontal</item> <item name="android:layout_width">0dp</item>
<item name="android:layout_height">wrap_content</item> <item name="android:singleLine">true</item>
<item name="android:layout_marginTop">-4dp</item> <item name="android:textColor">@android:color/white</item>
<item name="android:layout_width">wrap_content</item> <item name="android:textSize">18dp</item>
</style> <item name="android:textStyle">bold</item>
<!-- track widget value container 4x3 --> </style>
<style name="TrackWidgetValueContainer4x3" parent="@style/TrackWidgetValueContainer"> <!-- track widget value 4x3 -->
<item name="android:layout_marginTop">-2dp</item> <style name="TrackWidgetValue4x3" parent="@style/TrackWidgetValue">
</style> <item name="android:textSize">28dp</item>
<!-- track widget vertical line --> </style>
<style name="TrackWidgetVerticalLine"> <!-- track widget value 4x4 -->
<item name="android:background">@color/stats_separator</item> <style name="TrackWidgetValue4x4" parent="@style/TrackWidgetValue">
<item name="android:layout_height">0dp</item> <item name="android:textSize">36dp</item>
<item name="android:layout_width">1dp</item> </style>
</style> <!-- track widget value container -->
<!-- track widget vertical spacer --> <style name="TrackWidgetValueContainer">
<style name="TrackWidgetVerticalSpacer"> <item name="android:layout_gravity">center_horizontal</item>
<item name="android:layout_height">0dp</item> <item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">1dp</item> <item name="android:layout_marginTop">-4dp</item>
</style> <item name="android:layout_width">wrap_content</item>
<!-- track widget vertical separator --> </style>
<style name="TrackWidgetVerticalSeparator"> <!-- track widget value container 4x3 -->
<item name="android:layout_height">match_parent</item> <style name="TrackWidgetValueContainer4x3" parent="@style/TrackWidgetValueContainer">
<item name="android:layout_width">wrap_content</item> <item name="android:layout_marginTop">-2dp</item>
<item name="android:orientation">vertical</item> </style>
</style> <!-- track widget vertical line -->
<style name="TrackWidgetVerticalLine">
<item name="android:background">@color/stats_separator</item>
<item name="android:layout_height">0dp</item>
<item name="android:layout_width">1dp</item>
</style>
<!-- track widget vertical spacer -->
<style name="TrackWidgetVerticalSpacer">
<item name="android:layout_height">0dp</item>
<item name="android:layout_width">1dp</item>
</style>
<!-- track widget vertical separator -->
<style name="TrackWidgetVerticalSeparator">
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:orientation">vertical</item>
</style>
</resources> </resources>
+18 -14
View File
@@ -1,16 +1,20 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!-- Generated with http://android-holo-colors.com -->
<!-- Generated with http://android-holo-colors.com -->
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="AutoCompleteTextViewCustom" parent="android:Widget.Holo.AutoCompleteTextView">
<item name="android:dropDownSelector">@drawable/list_selector_holo_dark</item> <style name="AutoCompleteTextViewCustom" parent="android:Widget.Holo.AutoCompleteTextView">
<item name="android:background">@drawable/edit_text_holo_dark</item> <item name="android:dropDownSelector">@drawable/list_selector_holo_dark</item>
</style> <item name="android:background">@drawable/edit_text_holo_dark</item>
<style name="ProgressBarCustom" parent="android:Widget.Holo.ProgressBar.Horizontal"> </style>
<item name="android:progressDrawable">@drawable/progress_horizontal_holo_dark</item>
<item name="android:indeterminateDrawable">@drawable/progress_indeterminate_horizontal_holo_dark</item> <style name="ProgressBarCustom" parent="android:Widget.Holo.ProgressBar.Horizontal">
</style> <item name="android:progressDrawable">@drawable/progress_horizontal_holo_dark</item>
<style name="SpinnerCustom" parent="android:Widget.Holo.Spinner"> <item name="android:indeterminateDrawable">
<item name="android:background">@drawable/spinner_background_holo_dark</item> @drawable/progress_indeterminate_horizontal_holo_dark
<item name="android:dropDownSelector">@drawable/list_selector_holo_dark</item> </item>
</style> </style>
<style name="SpinnerCustom" parent="android:Widget.Holo.Spinner">
<item name="android:background">@drawable/spinner_background_holo_dark</item>
<item name="android:dropDownSelector">@drawable/list_selector_holo_dark</item>
</style>
</resources> </resources>
+37 -34
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2013 Google Inc. Copyright 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,36 +14,40 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="ThemeCustom" parent="android:Theme.Holo">
<!-- Auto generated --> <style name="ThemeCustom" parent="android:Theme.Holo">
<item name="android:activatedBackgroundIndicator">@drawable/activated_background_holo_dark</item> <!-- Auto generated -->
<item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextViewCustom</item> <item name="android:activatedBackgroundIndicator">@drawable/activated_background_holo_dark
<item name="android:dropDownSpinnerStyle">@style/SpinnerCustom</item> </item>
<item name="android:editTextBackground">@drawable/edit_text_holo_dark</item> <item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextViewCustom</item>
<item name="android:listChoiceBackgroundIndicator">@drawable/list_selector_holo_dark</item> <item name="android:dropDownSpinnerStyle">@style/SpinnerCustom</item>
<item name="android:listChoiceIndicatorMultiple">@drawable/btn_check_holo_dark</item> <item name="android:editTextBackground">@drawable/edit_text_holo_dark</item>
<item name="android:listChoiceIndicatorSingle">@drawable/btn_radio_holo_dark</item> <item name="android:listChoiceBackgroundIndicator">@drawable/list_selector_holo_dark</item>
<item name="android:progressBarStyleHorizontal">@style/ProgressBarCustom</item> <item name="android:listChoiceIndicatorMultiple">@drawable/btn_check_holo_dark</item>
<!-- Manually added --> <item name="android:listChoiceIndicatorSingle">@drawable/btn_radio_holo_dark</item>
<item name="android:actionBarStyle">@style/ActionBarStyleCustom</item> <item name="android:progressBarStyleHorizontal">@style/ProgressBarCustom</item>
<item name="android:actionModeBackground">@drawable/custom_action_mode_background</item> <!-- Manually added -->
<item name="android:alertDialogTheme">@style/CustomAlertDialogTheme</item> <item name="android:actionBarStyle">@style/ActionBarStyleCustom</item>
</style> <item name="android:actionModeBackground">@drawable/custom_action_mode_background</item>
<style name="CustomAlertDialogTheme" parent="@android:style/Theme.Holo.Dialog"> <item name="android:alertDialogTheme">@style/CustomAlertDialogTheme</item>
<!-- From auto generated --> </style>
<item name="android:activatedBackgroundIndicator">@drawable/activated_background_holo_dark</item>
<item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextViewCustom</item> <style name="CustomAlertDialogTheme" parent="@android:style/Theme.Holo.Dialog">
<item name="android:dropDownSpinnerStyle">@style/SpinnerCustom</item> <!-- From auto generated -->
<item name="android:editTextBackground">@drawable/edit_text_holo_dark</item> <item name="android:activatedBackgroundIndicator">@drawable/activated_background_holo_dark
<item name="android:listChoiceBackgroundIndicator">@drawable/list_selector_holo_dark</item> </item>
<item name="android:listChoiceIndicatorMultiple">@drawable/btn_check_holo_dark</item> <item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextViewCustom</item>
<item name="android:listChoiceIndicatorSingle">@drawable/btn_radio_holo_dark</item> <item name="android:dropDownSpinnerStyle">@style/SpinnerCustom</item>
<item name="android:progressBarStyleHorizontal">@style/ProgressBarCustom</item> <item name="android:editTextBackground">@drawable/edit_text_holo_dark</item>
<!-- From Theme.Holo.Dialog.Alert --> <item name="android:listChoiceBackgroundIndicator">@drawable/list_selector_holo_dark</item>
<item name="android:textColor">@color/holo_orange_dark</item> <item name="android:listChoiceIndicatorMultiple">@drawable/btn_check_holo_dark</item>
<item name="android:windowBackground">@android:color/transparent</item> <item name="android:listChoiceIndicatorSingle">@drawable/btn_radio_holo_dark</item>
<item name="android:windowContentOverlay">@null</item> <item name="android:progressBarStyleHorizontal">@style/ProgressBarCustom</item>
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item> <!-- From Theme.Holo.Dialog.Alert -->
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item> <item name="android:textColor">@color/holo_orange_dark</item>
</style> <item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
</style>
</resources> </resources>
+11 -12
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,14 +14,14 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<resources> <resources>
<!-- Do not translate --> <!-- Do not translate -->
<!-- Permissions, need to be in sync with the permissions in AndroidManifest.xml --> <!-- Permissions, need to be in sync with the permissions in AndroidManifest.xml -->
<string name="broadcast_notifications_permission" translatable="false">com.google.android.apps.mytracks.TRACK_NOTIFICATIONS</string> <string name="broadcast_notifications_permission" translatable="false">com.google.android.apps.mytracks.TRACK_NOTIFICATIONS</string>
<!-- Broadcast --> <!-- Broadcast -->
<string name="track_id_broadcast_extra" translatable="false">com.google.android.apps.mytracks.TRACK_ID</string> <string name="track_id_broadcast_extra" translatable="false">com.google.android.apps.mytracks.TRACK_ID</string>
<string name="track_paused_broadcast_action" translatable="false">com.google.android.apps.mytracks.TRACK_PAUSED</string> <string name="track_paused_broadcast_action" translatable="false">com.google.android.apps.mytracks.TRACK_PAUSED</string>
<string name="track_resumed_broadcast_action" translatable="false">com.google.android.apps.mytracks.TRACK_RESUMED</string> <string name="track_resumed_broadcast_action" translatable="false">com.google.android.apps.mytracks.TRACK_RESUMED</string>
<string name="track_started_broadcast_action" translatable="false">com.google.android.apps.mytracks.TRACK_STARTED</string> <string name="track_started_broadcast_action" translatable="false">com.google.android.apps.mytracks.TRACK_STARTED</string>
<string name="track_stopped_broadcast_action" translatable="false">com.google.android.apps.mytracks.TRACK_STOPPED</string> <string name="track_stopped_broadcast_action" translatable="false">com.google.android.apps.mytracks.TRACK_STOPPED</string>
<string name="track_update_broadcast_action" translatable="false">com.google.android.apps.mytracks.TRACK_UPDATE</string> <string name="track_update_broadcast_action" translatable="false">com.google.android.apps.mytracks.TRACK_UPDATE</string>
</resources> </resources>
+11 -11
View File
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<searchable xmlns:android="http://schemas.android.com/apk/res/android" <searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:hint="@string/menu_search" android:hint="@string/menu_search"
android:imeOptions="actionSearch" android:imeOptions="actionSearch"
android:includeInGlobalSearch="true" android:includeInGlobalSearch="true"
android:label="@string/app_name" android:label="@string/app_name"
android:queryAfterZeroResults="true" android:queryAfterZeroResults="true"
android:searchSettingsDescription="@string/search_global_description" android:searchSettingsDescription="@string/search_global_description"
android:searchSuggestAuthority="com.google.android.maps.mytracks.search" android:searchSuggestAuthority="com.google.android.maps.mytracks.search"
android:searchSuggestSelection=" ? " android:searchSuggestSelection=" ? "
android:searchSuggestThreshold="1" android:searchSuggestThreshold="1"
android:voicePromptText="@string/search_voice_prompt" android:voicePromptText="@string/search_voice_prompt"
android:voiceSearchMode="showVoiceSearchButton|launchRecognizer" /> android:voiceSearchMode="showVoiceSearchButton|launchRecognizer" />
+22 -23
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2010 Google Inc. Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,25 +14,25 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/menu_settings" > android:title="@string/menu_settings">
<Preference <Preference
android:key="@string/settings_chart_key" android:key="@string/settings_chart_key"
android:persistent="false" android:persistent="false"
android:title="@string/track_detail_chart_tab" /> android:title="@string/track_detail_chart_tab" />
<Preference <Preference
android:key="@string/settings_stats_key" android:key="@string/settings_stats_key"
android:persistent="false" android:persistent="false"
android:title="@string/track_detail_stats_tab" /> android:title="@string/track_detail_stats_tab" />
<Preference <Preference
android:key="@string/settings_recording_key" android:key="@string/settings_recording_key"
android:persistent="false" android:persistent="false"
android:title="@string/settings_recording" /> android:title="@string/settings_recording" />
<Preference <Preference
android:key="@string/settings_sensor_key" android:key="@string/settings_sensor_key"
android:persistent="false" android:persistent="false"
android:title="@string/settings_sensor" /> android:title="@string/settings_sensor" />
<Preference <Preference
android:key="@string/settings_advanced_key" android:key="@string/settings_advanced_key"
android:persistent="false" android:persistent="false"
android:title="@string/settings_advanced" /> android:title="@string/settings_advanced" />
</PreferenceScreen> </PreferenceScreen>
+10 -11
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,13 +14,13 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/settings_advanced" > android:title="@string/settings_advanced">
<ListPreference <ListPreference
android:defaultValue="1024" android:defaultValue="1024"
android:key="@string/photo_size_key" android:key="@string/photo_size_key"
android:title="@string/settings_advanced_photo_size_title" /> android:title="@string/settings_advanced_photo_size_title" />
<Preference <Preference
android:key="@string/settings_reset_key" android:key="@string/settings_reset_key"
android:persistent="false" android:persistent="false"
android:title="@string/settings_reset" /> android:title="@string/settings_reset" />
</PreferenceScreen> </PreferenceScreen>
+30 -31
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,33 +14,33 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/track_detail_chart_tab" > android:title="@string/track_detail_chart_tab">
<ListPreference <ListPreference
android:defaultValue="@string/chart_x_axis_distance" android:defaultValue="@string/chart_x_axis_distance"
android:key="@string/chart_x_axis_key" android:key="@string/chart_x_axis_key"
android:title="@string/settings_chart_x_axis" /> android:title="@string/settings_chart_x_axis" />
<PreferenceCategory android:title="@string/settings_show" > <PreferenceCategory android:title="@string/settings_show">
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="true" android:defaultValue="true"
android:key="@string/chart_show_elevation_key" android:key="@string/chart_show_elevation_key"
android:title="@string/stats_elevation" /> android:title="@string/stats_elevation" />
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="true" android:defaultValue="true"
android:key="@string/chart_show_speed_key" /> android:key="@string/chart_show_speed_key" />
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="true" android:defaultValue="true"
android:key="@string/chart_show_heart_rate_key" android:key="@string/chart_show_heart_rate_key"
android:title="@string/sensor_state_heart_rate" /> android:title="@string/sensor_state_heart_rate" />
<!-- <!--
TODO: Sensors are not implemented. TODO: Sensors are not implemented.
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="true" android:defaultValue="true"
android:key="@string/chart_show_cadence_key" android:key="@string/chart_show_cadence_key"
android:title="@string/sensor_state_cadence" /> android:title="@string/sensor_state_cadence" />
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="true" android:defaultValue="true"
android:key="@string/chart_show_power_key" android:key="@string/chart_show_power_key"
android:title="@string/sensor_state_power" /> android:title="@string/sensor_state_power" />
--> -->
</PreferenceCategory> </PreferenceCategory>
</PreferenceScreen> </PreferenceScreen>
+38 -39
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,41 +14,41 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/settings_recording" > android:title="@string/settings_recording">
<ListPreference <ListPreference
android:defaultValue="0" android:defaultValue="0"
android:key="@string/voice_frequency_key" android:key="@string/voice_frequency_key"
android:title="@string/menu_voice_frequency" /> android:title="@string/menu_voice_frequency" />
<ListPreference <ListPreference
android:defaultValue="0" android:defaultValue="0"
android:key="@string/split_frequency_key" android:key="@string/split_frequency_key"
android:title="@string/menu_split_frequency" /> android:title="@string/menu_split_frequency" />
<ListPreference <ListPreference
android:defaultValue="@string/settings_recording_track_name_date_iso_8601_location_value" android:defaultValue="@string/settings_recording_track_name_date_iso_8601_location_value"
android:key="@string/track_name_key" android:key="@string/track_name_key"
android:title="@string/settings_recording_track_name_title" /> android:title="@string/settings_recording_track_name_title" />
<com.google.android.apps.mytracks.settings.ActivityTypePreference <com.google.android.apps.mytracks.settings.ActivityTypePreference
android:defaultValue="@string/activity_type_running" android:defaultValue="@string/activity_type_running"
android:key="@string/default_activity_key" android:key="@string/default_activity_key"
android:title="@string/settings_recording_default_activity_title" /> android:title="@string/settings_recording_default_activity_title" />
<ListPreference <ListPreference
android:defaultValue="0" android:defaultValue="0"
android:key="@string/min_recording_interval_key" android:key="@string/min_recording_interval_key"
android:title="@string/settings_recording_min_recording_interval_title" /> android:title="@string/settings_recording_min_recording_interval_title" />
<ListPreference <ListPreference
android:defaultValue="10" android:defaultValue="10"
android:key="@string/recording_distance_interval_key" android:key="@string/recording_distance_interval_key"
android:title="@string/settings_recording_min_recording_distance_title" /> android:title="@string/settings_recording_min_recording_distance_title" />
<ListPreference <ListPreference
android:defaultValue="200" android:defaultValue="200"
android:key="@string/max_recording_distance_key" android:key="@string/max_recording_distance_key"
android:title="@string/settings_recording_max_recording_distance_title" /> android:title="@string/settings_recording_max_recording_distance_title" />
<ListPreference <ListPreference
android:defaultValue="50" android:defaultValue="50"
android:key="@string/recording_gps_accuracy_key" android:key="@string/recording_gps_accuracy_key"
android:title="@string/settings_recording_min_required_accuracy_title" /> android:title="@string/settings_recording_min_required_accuracy_title" />
<ListPreference <ListPreference
android:defaultValue="10" android:defaultValue="10"
android:key="@string/auto_resume_track_timeout_key" android:key="@string/auto_resume_track_timeout_key"
android:title="@string/settings_recording_auto_resume_track_timeout_title" /> android:title="@string/settings_recording_auto_resume_track_timeout_title" />
</PreferenceScreen> </PreferenceScreen>
+16 -17
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,19 +14,19 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:key="@string/settings_sensor_root_key" android:key="@string/settings_sensor_root_key"
android:title="@string/settings_sensor" > android:title="@string/settings_sensor">
<PreferenceCategory <PreferenceCategory
android:key="@string/settings_sensor_bluetooth_key" android:key="@string/settings_sensor_bluetooth_key"
android:title="@string/settings_sensor_bluetooth" > android:title="@string/settings_sensor_bluetooth">
<Preference <Preference
android:key="@string/settings_sensor_bluetooth_pairing_key" android:key="@string/settings_sensor_bluetooth_pairing_key"
android:persistent="false" android:persistent="false"
android:summary="@string/settings_sensor_bluetooth_pairing_summary" android:summary="@string/settings_sensor_bluetooth_pairing_summary"
android:title="@string/settings_sensor_bluetooth_pairing" /> android:title="@string/settings_sensor_bluetooth_pairing" />
<ListPreference <ListPreference
android:defaultValue="@string/sensor_type_value_none" android:defaultValue="@string/sensor_type_value_none"
android:key="@string/bluetooth_sensor_key" android:key="@string/bluetooth_sensor_key"
android:title="@string/settings_sensor_bluetooth_sensor" /> android:title="@string/settings_sensor_bluetooth_sensor" />
</PreferenceCategory> </PreferenceCategory>
</PreferenceScreen> </PreferenceScreen>
+20 -21
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2012 Google Inc. Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,23 +14,23 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/track_detail_stats_tab" > android:title="@string/track_detail_stats_tab">
<ListPreference <ListPreference
android:defaultValue="@string/stats_units_metric" android:defaultValue="@string/stats_units_metric"
android:key="@string/stats_units_key" android:key="@string/stats_units_key"
android:title="@string/settings_stats_units_title" /> android:title="@string/settings_stats_units_title" />
<ListPreference <ListPreference
android:defaultValue="@string/stats_rate_speed" android:defaultValue="@string/stats_rate_speed"
android:key="@string/stats_rate_key" android:key="@string/stats_rate_key"
android:title="@string/settings_stats_rate_title" /> android:title="@string/settings_stats_rate_title" />
<PreferenceCategory android:title="@string/settings_show" > <PreferenceCategory android:title="@string/settings_show">
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="false" android:defaultValue="false"
android:key="@string/stats_show_grade_elevation_key" android:key="@string/stats_show_grade_elevation_key"
android:title="@string/settings_stats_grade_elevation" /> android:title="@string/settings_stats_grade_elevation" />
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="false" android:defaultValue="false"
android:key="@string/stats_show_coordinate_key" android:key="@string/stats_show_coordinate_key"
android:title="@string/settings_stats_coordinate" /> android:title="@string/settings_stats_coordinate" />
</PreferenceCategory> </PreferenceCategory>
</PreferenceScreen> </PreferenceScreen>
+11 -12
View File
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?><!--
<!--
Copyright 2011 Google Inc. Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,13 +14,13 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:configure="com.google.android.apps.mytracks.widgets.TrackWidgetConfigActivity" android:configure="com.google.android.apps.mytracks.widgets.TrackWidgetConfigActivity"
android:initialKeyguardLayout="@layout/track_widget_4x1" android:initialKeyguardLayout="@layout/track_widget_4x1"
android:initialLayout="@layout/track_widget_4x2" android:initialLayout="@layout/track_widget_4x2"
android:minHeight="110dp" android:minWidth="250dp"
android:minResizeHeight="40dp" android:minHeight="110dp"
android:minResizeWidth="250dp" android:minResizeWidth="250dp"
android:minWidth="250dp" android:minResizeHeight="40dp"
android:resizeMode="vertical" android:resizeMode="vertical"
android:updatePeriodMillis="0" android:updatePeriodMillis="0"
android:widgetCategory="keyguard|home_screen" /> android:widgetCategory="keyguard|home_screen" />