A demand analysis
1) Source of demand and operation analysis and technical analysis
Android comes with a very human-friendly clock application, which is devastating for the usual countdown and timing partners. So I'm going to do a very simple countdown widget for the operation. The operation is similar to the setting of the alarm clock, the Ring clock interface, click a time, directly start the countdown, the widget is to support the Click event, so the requirements should be achievable.
2) in particular, as a late stage of procrastination, it is possible that the plan of this article could not be achieved at all, if one day I really completed the plan. Wait until the day to say it.
II. Development Plan
The app mainly wants to develop widgets, because the function is too simple, so the main program and widgets use the same interface. Plan to develop the main app and then port the relevant code to the widget.
Specific plans are as follows:
- Determines the drawing mode, whether to use full drawing (like the game interface, the button is also drawn up)
- Draw the Backplane
- First make the countdown, draw the surrounding button, can click.
- The countdown should require a backend service or something like that, so the widget and app main interface is a set of backstage.
- Draw a curved interface to display the countdown.
- Make timings and draw timings directly with the method of drawing arcs (possible colors need to be different)
- Ported to the widget.
- Say it again.
After the third-level development is finished.
Procrastination Patient's Android development note-Timer widget