|
1 | 1 | # v2.0.0 |
2 | 2 | - Changed package name to `com.maltaisn.calcdialoglib`. |
3 | 3 | - To change the dialog settings, `CalcDialog.getSettings()` must now be used. |
| 4 | +- Order of operations is now applied by default. This can be changed with `setOrderOfOperationsApplied(Boolean)`. |
4 | 5 | - Added a setting to show the typed expression (`setExpressionShown(Boolean)`), which can also be edited (`setExpressionEditable(Boolean)`). |
5 | 6 | - Added a setting for choosing the numpad layout: like a phone (top row 123) or a calculator (top row 789). |
6 | 7 | - 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. |
7 | 8 | - Added `calcHeaderElevation`, `calcHeaderStyle`, `calcExpressionStyle` and `calcExpressionScrollViewStyle` style attributes. |
8 | 9 | - Added getters to `CalcSettings` for Kotlin property syntax. |
9 | | -- Order of operations is now applied by default. This can be changed with `setOrderOfOperationsApplied(Boolean)`. |
| 10 | +- Added a `calcHeaderElevationDrawable` attribute, needed to customize the header before API 21. |
10 | 11 | - Changed `setValue(BigDecimal)` to `setInitialValue(BigDecimal)`. |
11 | 12 | - Changed `setClearOnOperation(Boolean)` to `setShouldEvaluateOnOperation(Boolean)`. |
12 | 13 | - Changed `setShowZeroWhenNoValue(Boolean)` to `setZeroShownWhenNoValue(Boolean)`. |
13 | 14 | - Changed minus sign from hyphen `-` to unicode symbol `−`. |
14 | 15 | - Changed "Out of bounds" error behavior, now only shown when OK is pressed. |
15 | 16 | - Changed default maximum dialog height from 400dp to 500dp. |
16 | 17 | - Replaced all formatting settings with NumberFormat: |
17 | | - - `setMaximumIntegerDigits`: maximum integer digits than can be typed. |
18 | | - - `setMaximumFractionDigits`: maximum fraction digits than can be typed. |
19 | | - - `setDecimalFormatSymbolds`: change decimal separator, negative sign, grouping symbol, etc. |
| 18 | + - `setMaximumIntegerDigits`: maximum integer digits than can be typed, but more could be displayed. |
| 19 | + - `setMaximumFractionDigits`: maximum fraction digits than can be typed and displayed. |
| 20 | + - `setDecimalFormatSymbols`: change decimal separator, negative sign, grouping symbol, etc. |
20 | 21 | - `setGroupingUsed`: enable or disable grouping. |
21 | 22 | - `setRoundingMode`: change the rounding mode, also used for division by the calculator. |
22 | 23 | - More settings available like prefix, suffix and minimum digits. |
|
0 commit comments