bajabob / FastPhrase

A voice recording application inspired by emergency crews
0 stars 0 forks source link

Finish ElapsedTimeView #69

Closed bajabob closed 8 years ago

bajabob commented 8 years ago

pull from develop first and don't forget to do this work under a feature branch called feature/69-elapsed-time-view

As a developer of the Fast Phrase application, my job is to create an elapsed time view for the recording activity view. This is the view that must start counting from zero (00:00:00, minutes, seconds, milliseconds) and start counting upwards when onStart is called. When onStop is called the view shall stop counting. Additionally please complete getElapsedTimeInMilliseconds. This function will likely be called after the recording is done, but should work even while the timer is active and counting. You do not need to worry about stopping and resuming counting. Assume the clock will start at zero and stop only once.

This view is to be placed in the center of the screen and start counting when told to start and stop when told as well. For convince a testing button has been added to help debug, but the boolean mIsRunning is not hooked up (make sure it is toggling!). The view must match the styling in the render below. All colors, sizes, etc.

It shall use one of the fonts already included with the project. (available fonts found here: http://stackoverflow.com/a/13329907/454336) Please match font as closely to render as possible.

Files you'll be poking around in: views/ElapsedTimeView.java and res/layout/view_elapsed_time.xml.

HINT: You will need a handler and runnable like the one used in view/PlayButtonView.java to periodically check how much time has elapsed by using an update frequency UPDATE_FREQUENCY_MS like the one in that file. As you have guessed, in that view the elapsed time is checked ever 25 milliseconds and updates the text. Try seeing how fast you can set this update frequency without making the app perform like shit :smile:

record-resting

bajabob commented 8 years ago

merged into develop