This is my implementation of the second Jetpack Compose Android Dev Challenge, Jetpack Compause! It features a functional countdown time, up to 5 minutes. This can be either paused and adjusted, or stopped to reset the countdown. The background uses Canvas to visually show the countdown.
This challenge gave me the chance to use both state and animation with Compose. State allowed me to both handle the actual timer counting down, as well as managing different states for the timer (counting, paused and stopped). Animation I was able to apply to the text changing when the timer is counting down, giving it a more engaging UI.
Copyright 2020 The Android Open Source Project
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.