问题标签 [gradientdrawable]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
57 浏览

kotlin - Kotlin 以编程方式绘制 - 更改渐变颜色(startColor、centerColor、endColor)

请帮我翻译成程序化的progressDrawable。我需要三种颜色:

MainDashboardFragment.kt

fragment_main_dashboard_paired.xml

progress_circle.xml

实施?这是正确的程序吗?

我的灵感:渐变圆形进度条