Skip to content

ronitgulia/Mobile-App-Simple-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mobile-App-Simple-Calculator

A simple Android calculator application built with Kotlin and XML.

Features

  • 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 GridLayout for a standard calculator arrangement.
  • Smart Formatting: Displays integer results without decimal points (e.g., 5 instead of 5.0).

Recent Fixes

  • Synchronized button IDs between activity_main.xml and MainActivity.kt (e.g., btnMul, btnEquals).
  • Resolved missing Button and setOnClickListener imports in Kotlin.
  • Cleaned up unused edge-to-edge imports for better compatibility.

How to Run

  1. Clone the repository.
  2. Open the project in Android Studio.
  3. Build and run on an emulator or physical device.

About

A clean Android calculator app built with Kotlin and XML — covering basic arithmetic, percentage, sign toggle, and smart result formatting using GridLayout and click listeners.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages