How bsrwx/psm_kalkulator works
Kalkulator is an Android calculator built with Jetpack Compose. The user enters expressions through a reusable keyboard; the app evaluates complete expressions in a separate Kotlin engine and displays results or calculation errors. The README also documents landscape scientific functions, adaptive layout, saved state across rotation, and light/dark theming. Source excerpts were not provided, so relationships below rely on README statements; unverified implementation links are omitted or dashed.
Main entry points: MainActivity.kt Calculator screen · Theme.kt Compose theme · CalculatorEngine.kt Calculator engine · strings.xml Localized error text
Components 13
Calculator UI
- Calculator screen
app/src/main/java/com/example/kalkulator/MainActivity.kt - Reusable keyboard
app/src/main/java/com/example/kalkulator/MainActivity.kt - Adaptive layout
app/src/main/java/com/example/kalkulator/MainActivity.kt - Scientific mode
app/src/main/java/com/example/kalkulator/MainActivity.kt - Saved UI state
app/src/main/java/com/example/kalkulator/MainActivity.kt
Calculation
- Calculator engine
app/src/main/java/com/example/kalkulator/CalculatorEngine.kt - mXparser
Presentation
- Localized error text
app/src/main/res/values/strings.xml - Compose theme
app/src/main/java/com/example/kalkulator/ui/theme/Theme.kt - Theme colors
app/src/main/java/com/example/kalkulator/ui/theme/Color.kt - Theme typography
app/src/main/java/com/example/kalkulator/ui/theme/Type.kt - UI translations
app/src/main/res/values-pl/strings.xml
Other components
- Calculator user
Connections 12
- Calculator user → Calculator screen: uses
README.md - Calculator screen → Reusable keyboard: renders
README.md - Calculator screen → Adaptive layout: adapts layout
README.md - Calculator screen → Scientific mode: shows in landscape
README.md - Calculator screen → Saved UI state: preserves state
README.md - Calculator screen → Calculator engine: evaluates with
- Calculator engine → mXparser: parses expressions
README.md - Calculator screen → Localized error text: shows calculation error
README.md - Calculator screen → Compose theme: uses
README.md - Compose theme → Theme colors: applies
- Compose theme → Theme typography: applies
- Calculator screen → UI translations: localizes UI
README.md