Skip to content

Android518-2015/01-calculator

 
 

Repository files navigation

Simple Calculator

What is this?

This repository is starter code for a simple calculator app for Android. It can be used to learn some of the basics of coding using the Android framework. It has one Activity and one layout.

If you are not familiar with using git please see the first git lab.

Note: The gitignore file covers Windows, OS X, Android Studio and Eclipse.

Instructions for using it:

  1. Fork the repository, there should be a fork button on the upper right hand side of this page.

  2. Clone your fork onto your computer

  3. Open it as an existing project in android studio or other IDE.

  4. Run it on an AVD or a real device.

  5. At this point you will see: ...screenshot of app

  6. Now that you are sure it works, make the following changes:

  7. validate input if empty or not numeric display an appropriate message in the result field.

  8. add buttons to the UI for subtract, divide, multiply and their associated code

  9. validate input for division, no divide by zero

  10. add a button that will clear all text fields

  11. the hint for the result widiget is hard coded, move it to the strings.xml file

  12. change the colour of the text

  13. change the colour of the buttons

  14. see if there are any other instructions in the TODOs in the source code.

  15. As you make your changes, be sure to push to your fork.

About

Calculator app, beginning code & instructions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%