Skip to content

Releases: maltaisn/calcdialoglib

v2.2.3

28 Dec 22:09
66ae1a6
Compare
Choose a tag to compare
  • Update dependencies to latest versions.
  • Fix maximum integer digits not accounting for minus (#41).

v2.2.1

20 Jul 01:19
v2.2.1
54b6650
Compare
Choose a tag to compare
  • Fixed NPE when erasing after presenter is detached. (#28)

v2.2.0

30 Apr 22:53
v2.2.0
b941b60
Compare
Choose a tag to compare
  • 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 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.
    • Renamed calcNumberBtnStyle to calcDigitBtnStyle, calcNumberBtnColor to calcDigitBtnColor,
      and calcDialogSepColor to calcDividerColor.
  • Fixed crashes due to NumberFormat deserialization bug during unparcelization.

v2.1.2

16 Dec 21:02
bdd5aa2
Compare
Choose a tag to compare
  • Fixed many NPE on some devices.
  • Fixed Expression parcel implementation.

v2.1.1

17 Nov 13:51
849d1d5
Compare
Choose a tag to compare
  • Disabled RTL layout in dialog.

v2.1.0

19 Sep 22:51
f0436af
Compare
Choose a tag to compare
  • Added Hebrew translation.

v2.0.1

19 Sep 22:52
7fd9af5
Compare
Choose a tag to compare
  • Fixed crash in writeToParcel on Android 5.0 with RTL language (#21).
  • Japenese translation improvements.

v2.0.0

10 Mar 18:05
Compare
Choose a tag to compare
  • 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 and calcExpressionScrollViewStyle 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) to setInitialValue(BigDecimal).
  • Changed setClearOnOperation(Boolean) to setShouldEvaluateOnOperation(Boolean).
  • Changed setShowZeroWhenNoValue(Boolean) to setZeroShownWhenNoValue(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, use android:layout_height in calcValueStyle instead.
  • Removed com.google.android.material dependency.

v1.4.1

09 Feb 20:20
Compare
Choose a tag to compare
  • Improved material components compatibility.
  • Fixed custom button style not working.

v1.4.0

06 Jan 18:02
Compare
Choose a tag to compare
  • Migrated to AndroidX.