Add an activity setup button in stat page when the activity type is not support to calculate calorie.

This commit is contained in:
youtaol
2013-09-10 11:01:18 +08:00
parent 282c48f530
commit 02587dc27e
9 changed files with 66 additions and 21 deletions
+7
View File
@@ -142,5 +142,12 @@ limitations under the License.
<include
android:id="@+id/stats_calorie"
layout="@layout/stats_small_item" />
<!-- Setup activity type-->
<Button
android:id="@+id/stats_calorie_setup"
android:layout_gravity="right"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="@string/stats_calorie_setup" />
</LinearLayout>
</merge>
+3 -3
View File
@@ -2146,11 +2146,11 @@ limitations under the License.
Character limit: ~23 (1 line)">
Calories
</string>
<string name="stats_calorie_invalid_type"
translation_description="In the 'Stats' page, the calorie value label while pending.
<string name="stats_calorie_setup"
translation_description="In the 'Stats' page, the button to setup calorie.
Character limit: ~23 (1 line)">
Calories(Invalid type)
Setup Activity Type
</string>
<string name="stats_fastest_pace"
translation_description="In the 'Stats' page, the fastest pace.">