Objective:
The "Android Custom View (iv)--onmeasure method Understanding" has been described earlier, so let's take a little practice this time.
Task:
The company currently has two tasks that need me to complete
(1) Monitoring the liquid level of liquefied natural gas hydraulic tank
(2) Monitoring the pressure of liquefied natural gas hydraulic tank
The UI designer gave me the following design:
Task one practice begins with the first step: Take a look at the overall structure composition
Step Two: Draw text
(1) We will be the bottom of the text, color, size can be flexibly customized, so we have to declare the bottom text related attribute parameters, convenient to set according to the requirements
(2) as a whole, the color of each area, the relevant properties of the text brush can be drawn according to user settings, in order to clear the concept of easy to set up each other, I will create a new three brushes in charge of the relevant areas of the drawing
According to the above requirements in the drawing at the bottom of the text, affirmed the following parameters
Android Custom View (v)--practice