Suppose we have a ring with an inner radius R2 and an outer radius R1. According to the documentation: Inner radius of the ring expressed as a ratio of the ring width.For instance, if innerRadiusRatio=9, then the inner radius equals the ring width divided by 9 As I understand it, this means that innerRadiusRatio = 2*R1 / R2 .
About the thickness of the Ratio is this: Thickness of the ring expressed as a ratio of the ring width. For instance, if thicknessRatio=3, then the thickness equals the ring width divided by 3 Thickness of the ring expressed as a ratio of the ring width. For instance, if thicknessRatio=3, then the thickness equals the ring width divided by 3 . So thicknessRatio = 2*R1 / (R1 - R2) .
From this two equations we can get this: thicknessRatio*(1-2/innerRadiusRatio)=2 , which means that there is a relationship between the thickness of Ratio and innerRadiusRatio. But there is no class documentation in this GradientDrawable about this connection. And it does not seem that there are any connections between them, since I can set the thickness of Ratio and innerRadiusRatio, which does not satisfy the last equation.
So tell me, please, where am I mistaken in my considerations or for what these parameters are really responsible for?
birdy source share