A simple Android calculator application built with Kotlin and XML.
- Basic Arithmetic: Supports addition, subtraction, multiplication, and division.
- Advanced Functions:
AC: Clear the current calculation.+/-: Toggle the sign of the current number.%: Calculate the percentage of the current number.
- Clean UI: Uses a
GridLayoutfor a standard calculator arrangement. - Smart Formatting: Displays integer results without decimal points (e.g.,
5instead of5.0).
- Synchronized button IDs between
activity_main.xmlandMainActivity.kt(e.g.,btnMul,btnEquals). - Resolved missing
ButtonandsetOnClickListenerimports in Kotlin. - Cleaned up unused edge-to-edge imports for better compatibility.
- Clone the repository.
- Open the project in Android Studio.
- Build and run on an emulator or physical device.