anastr / SpeedView

Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape :zap:
Apache License 2.0
1.3k stars 324 forks source link

Create custom view with gradient. #224

Closed vedraj360 closed 3 years ago

vedraj360 commented 3 years ago

I know we can use ImageSpeedometer for making gradient background. But can you provide any hint how it can be implemnted using the Canvas using gradient.

What I have achieved till now is to create section and filling the color to each section.

Screenshot_1633422754

anastr commented 3 years ago

Take a look at PointerSpeedometer's code, it has a gradient effect.

vedraj360 commented 3 years ago

Thanks for pointing this out.