diff --git a/app/src/main/java/org/isoron/uhabits/views/RepetitionCountView.java b/app/src/main/java/org/isoron/uhabits/views/RepetitionCountView.java
index f99a2221a..38b2aab61 100644
--- a/app/src/main/java/org/isoron/uhabits/views/RepetitionCountView.java
+++ b/app/src/main/java/org/isoron/uhabits/views/RepetitionCountView.java
@@ -38,6 +38,13 @@ public class RepetitionCountView extends NumberView implements HabitDataView
{
super(context, attrs);
this.interval = DialogHelper.getIntAttribute(context, attrs, "interval");
+
+ int labelValue = DialogHelper.getIntAttribute(context, attrs, "labelValue");
+ String labelFormat = DialogHelper.getAttribute(context, attrs, "labelFormat");
+
+ if(labelValue > 0)
+ setLabel(String.format(labelFormat, labelValue));
+
refreshData();
}
diff --git a/app/src/main/res/layout/show_habit.xml b/app/src/main/res/layout/show_habit.xml
index 83eae1e52..c1e88dba1 100644
--- a/app/src/main/res/layout/show_habit.xml
+++ b/app/src/main/res/layout/show_habit.xml
@@ -65,7 +65,7 @@
+ android:text="@string/number_of_repetitions"/>
Frequency
Checkmark
- Repetitions
- Month
- Year
- Quarter
+ Number of repetitions
+ Last %d days
+ Last %d weeks
+ Last %d months
+ Last %d years
All time
\ No newline at end of file
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index f897ed590..d44beb972 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -63,7 +63,7 @@