A fully customizable calculator dialog for Android. Can be used to replace the numeric keyboard and useful to enter monetary amounts for example.
Is the fork of the calcdialoglib by maltaisn.
- Material design with Google Material Components.
- Built-in light and dark theme support.
- Customizable number format.
- Calculator or phone numpad layout styles.
- Optional min and max values showing out of bounds messages.
- Entered expression can be shown and edited.
- Optional answer button to reuse previous result.
- Order of operations can be applied or not.
- Expression can be evaluated on new operator or not.
- Optional clear button.
- Entirely customizable using custom attributes.
To get a library into your build:
- Add the JitPack repository to your root
build.gradle
at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the dependency to your app's
build.gradle
:
dependencies {
...
implementation 'com.github.inbalboa:calcdialoglib:vX.Y.Z'
}
Replace vX.Y.Z
with this version number:
- Get started on the wiki page Using the dialog.
- Customize the dialog's behavior by changing its settings.
- Learn how to style the dialog with the attributes
View changelog for release notes.