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.
- Fork the repository, there should be a fork button on the upper right hand side of this page.
- Clone your fork onto your computer
- Open it as an existing project in android studio or other IDE.
- Run it on an AVD or a real device.
- At this point you will see:
Changes
- validate input if empty or not numeric display an appropriate message in the result field.
- add buttons to the UI for subtract, divide, multiply and their associated code
- validate input for division, no divide by zero
- add a button that will clear all text fields
- the hint for the result widiget is hard coded, move it to the strings.xml file
- change the colour of the text
- change the colour of the buttons
- see if there are any other instructions in the TODOs written in the source code comments.
Note As you make your changes, be sure to push to gitblargh.