ScaleCalibrationPickerInspectorView

constructor(@NonNull lineAnnotation: LineAnnotation, @NonNull context: Context, @NonNull label: String, @NonNull defaultUnit: Scale.UnitTo, focusValueText: Boolean, @Nullable listener: ScaleCalibrationPickerInspectorView.CalibrationPickerListener)

Construct calibration picker.

Parameters

lineAnnotation

the lineannotation whose length we calibrate

context

The context to use.

label

text describing the calibration value

defaultUnit

Default Scale.UnitTo value selected. This should always be the same as the Scale destination ("to") unit.

focusValueText

if true the value text widget will be focused and the keyboard be shown automatically after showing the inspector

listener

Listener for calibration picker changes.