use of org.odk.collect.android.widgets.RangePickerDecimalWidget in project collect by opendatakit.
the class FormEntryActivity method onNumberPickerValueSelected.
@Override
public void onNumberPickerValueSelected(int widgetId, int value) {
if (currentView != null) {
for (QuestionWidget qw : ((ODKView) currentView).getWidgets()) {
if (qw instanceof RangePickerIntegerWidget && widgetId == qw.getId()) {
((RangePickerIntegerWidget) qw).setNumberPickerValue(value);
widgetValueChanged(qw);
return;
} else if (qw instanceof RangePickerDecimalWidget && widgetId == qw.getId()) {
((RangePickerDecimalWidget) qw).setNumberPickerValue(value);
widgetValueChanged(qw);
return;
}
}
}
}
Aggregations