mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-09 18:48:51 -06:00
Make labels more clear and customizable
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user