Clean up Track Widget.

- adjust margins
- display speed or pace
- display total time or total moving time
- use km intead of m when distance is greater than 1 km
- use mi instead ft when distance is greater than 1 mi
This commit is contained in:
Jimmy Shih
2012-06-02 14:24:14 -07:00
parent c890755411
commit 25c2cf66c2
10 changed files with 273 additions and 256 deletions
+7 -2
View File
@@ -157,8 +157,13 @@ limitations under the License.
</style>
<!-- Theme selector -->
<style name="ThemeSelector" parent="android:Theme" />
<!-- The style for the track widget value -->
<style name="TrackWidgetValue" parent="@style/TextSmall">
<!-- The style for the track widget label -->
<style name="TrackWidgetLabel" parent="@style/TextSmall">
<item name="android:width">100dp</item>
</style>
<!-- The style for the track widget value -->
<style name="TrackWidgetValue" parent="@style/TextSmall">
<item name="android:layout_weight">1</item>
<item name="android:layout_width">0dp</item>
</style>
</resources>