Skip to content

seahyinghang8/simple-tip

Repository files navigation

Simple Tip Calculator

Ying Hang Seah

SimpleTip computes the tip and total amount for a bill. The app uses the base amount and tip percentage to calculate the total. The user can adjust the tip percentage and round the total amount.

Time spent: 10+ hours spent in total

Functionality

The following required functionality is completed:

  • User can enter in a bill amount (total amount to tip on)
  • User can enter a tip percentage (what % the user wants to tip).
  • The tip and total amount are updated immediately when any of the inputs changes.
  • The user sees a label or color update based on the tip amount.

The following extensions are implemented:

  • Custom colors palette selected
  • Simple and clean design
  • Tip adjustment will only show up when the tip section is clicked
  • An option to round the total is available when the total is not a whole number

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough

GIF created with EZToGIF.

Notes

Creating a clickable section was not easy as it requires creating a view to nest all the elements in the section. The click event gets blocked when the EditText is clicked and this requires the usage of FocusListener instead. Lastly, learning how to access / create the right styling was also challenging.

License

Copyright [2020] [Ying Hang Seah]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

A minimalistic tipping app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages