How do I draw an arc with gradient in Android?
I need this picture
https://i.stack.imgur.com/oGW0X.jpg▾
to be drawn in Android as a custom View (or something else). Additionally gradient should not be static, it should rotate depending on the input (imagine temperature from -10 to +40, it should be from full blue to full red with intermediate states).
I figured out that I need two bitmaps: a gradient rectangle and a masked arc. Then I could rotate the gradient rectangle and that's it. The point is I...