Releases: maltaisn/calcdialoglib
Releases · maltaisn/calcdialoglib
v2.2.3
v2.2.1
v2.2.0
- Google's Material Components now used for UI.
- Lowered min SDK to 14.
- Added content description for the erase button.
- Initial value can now be negated. Previous behavior was to clear the value.
- Breaking changes in styling attributes:
- Removed
calcHeaderStyle
andcalcHeaderElevationDrawable
attributes, they were replaced
bycalcHeaderColor
andcalcHeaderElevationColor
. Note that the latter only applies to
APIs below 21, otherwise default elevation color is used. - Renamed
calcNumberBtnStyle
tocalcDigitBtnStyle
,calcNumberBtnColor
tocalcDigitBtnColor
,
andcalcDialogSepColor
tocalcDividerColor
.
- Removed
- Fixed crashes due to NumberFormat deserialization bug during unparcelization.
v2.1.2
v2.1.1
v2.1.0
v2.0.1
v2.0.0
- Changed package name to
com.maltaisn.calcdialoglib
. - To change the dialog settings,
CalcDialog.getSettings()
must now be used. - Order of operations is now applied by default. This can be changed with
setOrderOfOperationsApplied(Boolean)
. - Added a setting to show the typed expression (
setExpressionShown(Boolean)
), which can also be edited (setExpressionEditable(Boolean)
). - Added a setting for choosing the numpad layout: like a phone (top row 123) or a calculator (top row 789).
- Added a min value setting separate from max value. As a consequence,
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. - Added
calcHeaderElevation
,calcHeaderStyle
,calcExpressionStyle
andcalcExpressionScrollViewStyle
style attributes. - Added getters to
CalcSettings
for better Kotlin interoperability. - Added a
calcHeaderElevationDrawable
attribute, needed to customize the header before API 21. - Changed
setValue(BigDecimal)
tosetInitialValue(BigDecimal)
. - Changed
setClearOnOperation(Boolean)
tosetShouldEvaluateOnOperation(Boolean)
. - Changed
setShowZeroWhenNoValue(Boolean)
tosetZeroShownWhenNoValue(Boolean)
. - Changed minus sign from hyphen
-
to unicode symbol−
. - Changed "Out of bounds" error behavior, now only shown when OK is pressed.
- Changed default maximum dialog height from 400dp to 500dp.
- Replaced all formatting settings with NumberFormat:
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.- More settings available like prefix, suffix and minimum digits.
- Removed
calcHeaderHeight
attribute, useandroid:layout_height
incalcValueStyle
instead. - Removed
com.google.android.material
dependency.