This new drawing method brings the following improvements:
The tips of the wave now have a smooth finish and a smooth animation
When flattened, the transition of wave heights is now smooth
The wave now has the proper height (and thus the component height is also correct)
(there is still one catch: the wave thickness is not taken into account in the total component height; so, with a waveThickness of 4.dp and a waveHeight of 16.dp, the height of the component will be 16.dp but the actual height of the drawn wave will be 20.dp with 2.dp extruding from the top and the bottom of the component boundary/border)
This new drawing method brings the following improvements:
waveThickness
of4.dp
and awaveHeight
of16.dp
, the height of the component will be16.dp
but the actual height of the drawn wave will be20.dp
with2.dp
extruding from the top and the bottom of the component boundary/border)Resolves #6 and fixes #10.