Calculator dialog for Android
calcHeaderStyle
and calcHeaderElevationDrawable
attributes, they were replaced
by calcHeaderColor
and calcHeaderElevationColor
. Note that the latter only applies to
APIs below 21, otherwise default elevation color is used.calcNumberBtnStyle
to calcDigitBtnStyle
, calcNumberBtnColor
to calcDigitBtnColor
,
and calcDialogSepColor
to calcDividerColor
.Expression
parcel implementation.com.maltaisn.calcdialoglib
.CalcDialog.getSettings()
must now be used.setOrderOfOperationsApplied(Boolean)
.setExpressionShown(Boolean)
), which can also be edited (setExpressionEditable(Boolean)
).setSignCanBeChanged
setting was removed, use a minimum or maximum of 0 instead. If the minimum or the maximum is 0, special error messages like "Result must be positive" will still be shown.calcHeaderElevation
, calcHeaderStyle
, calcExpressionStyle
and calcExpressionScrollViewStyle
style attributes.CalcSettings
for better Kotlin interoperability.calcHeaderElevationDrawable
attribute, needed to customize the header before API 21.setValue(BigDecimal)
to setInitialValue(BigDecimal)
.setClearOnOperation(Boolean)
to setShouldEvaluateOnOperation(Boolean)
.setShowZeroWhenNoValue(Boolean)
to setZeroShownWhenNoValue(Boolean)
.-
to unicode symbol −
.setMaximumIntegerDigits
: maximum integer digits than can be typed, but more could be displayed.setMaximumFractionDigits
: maximum fraction digits than can be typed and displayed.setDecimalFormatSymbols
: change decimal separator, negative sign, grouping symbol, etc.setGroupingUsed
: enable or disable grouping.setRoundingMode
: change the rounding mode, also used for division by the calculator.calcHeaderHeight
attribute, use android:layout_height
in calcValueStyle
instead.com.google.android.material
dependency.