From 7d5d462a2a8f568fdc92b68ee94e6333ed8b6067 Mon Sep 17 00:00:00 2001 From: Jimmy Shih Date: Mon, 8 Oct 2012 17:25:27 -0700 Subject: [PATCH] add chronometer to each app widget item --- MyTracks/res/layout/track_widget_4x1.xml | 6 + MyTracks/res/layout/track_widget_4x2.xml | 12 ++ MyTracks/res/layout/track_widget_4x3.xml | 12 ++ MyTracks/res/layout/track_widget_4x4.xml | 12 ++ MyTracks/res/layout/track_widget_config.xml | 15 +- MyTracks/res/values/styles.xml | 17 +- .../mytracks/widgets/TrackWidgetProvider.java | 165 ++++++++++-------- 7 files changed, 147 insertions(+), 92 deletions(-) diff --git a/MyTracks/res/layout/track_widget_4x1.xml b/MyTracks/res/layout/track_widget_4x1.xml index feb9b85bb..4263b1cdc 100644 --- a/MyTracks/res/layout/track_widget_4x1.xml +++ b/MyTracks/res/layout/track_widget_4x1.xml @@ -48,6 +48,9 @@ limitations under the License. + @@ -78,6 +81,9 @@ limitations under the License. + diff --git a/MyTracks/res/layout/track_widget_4x2.xml b/MyTracks/res/layout/track_widget_4x2.xml index 9a0dcaea2..a01f492cb 100644 --- a/MyTracks/res/layout/track_widget_4x2.xml +++ b/MyTracks/res/layout/track_widget_4x2.xml @@ -37,6 +37,9 @@ limitations under the License. + @@ -62,6 +65,9 @@ limitations under the License. + @@ -92,6 +98,9 @@ limitations under the License. + @@ -117,6 +126,9 @@ limitations under the License. + diff --git a/MyTracks/res/layout/track_widget_4x3.xml b/MyTracks/res/layout/track_widget_4x3.xml index 4061c5f24..72dac1be6 100644 --- a/MyTracks/res/layout/track_widget_4x3.xml +++ b/MyTracks/res/layout/track_widget_4x3.xml @@ -37,6 +37,9 @@ limitations under the License. + @@ -60,6 +63,9 @@ limitations under the License. + @@ -90,6 +96,9 @@ limitations under the License. + @@ -113,6 +122,9 @@ limitations under the License. + diff --git a/MyTracks/res/layout/track_widget_4x4.xml b/MyTracks/res/layout/track_widget_4x4.xml index 39ce5ea58..ab15fb6c0 100644 --- a/MyTracks/res/layout/track_widget_4x4.xml +++ b/MyTracks/res/layout/track_widget_4x4.xml @@ -37,6 +37,9 @@ limitations under the License. + @@ -67,6 +70,9 @@ limitations under the License. + @@ -96,6 +102,9 @@ limitations under the License. + @@ -121,6 +130,9 @@ limitations under the License. + diff --git a/MyTracks/res/layout/track_widget_config.xml b/MyTracks/res/layout/track_widget_config.xml index 437c650ed..c35cb5a1b 100644 --- a/MyTracks/res/layout/track_widget_config.xml +++ b/MyTracks/res/layout/track_widget_config.xml @@ -22,21 +22,24 @@ limitations under the License. + android:padding="8dp" + android:stretchColumns="0" > - - - + + + + + diff --git a/MyTracks/res/values/styles.xml b/MyTracks/res/values/styles.xml index f4177c4d8..26d61e047 100644 --- a/MyTracks/res/values/styles.xml +++ b/MyTracks/res/values/styles.xml @@ -231,23 +231,14 @@ limitations under the License. - -