anastr / SpeedView

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

using version 1.5.5 of the library, how do i change the fill color for a Tube Speedometer ? #206

Closed Pieter-127 closed 3 years ago

Pieter-127 commented 3 years ago
<com.github.anastr.speedviewlib.TubeSpeedometer
                    android:id="@+id/foo"
                    android:layout_width="280dp"
                    android:layout_height="280dp"
                    android:layout_gravity="center"
                    android:layout_marginTop="16dp"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toTopOf="parent"
                    app:sv_endDegree="630"
                    app:sv_speedTextColor="@android:color/transparent"
                    app:sv_speedometerMode="NORMAL"
                    app:sv_speedometerWidth="24dp"
                    app:sv_startDegree="270"
                    app:sv_textColor="@android:color/transparent"
                    app:sv_unit=""
                    app:sv_unitTextColor="@android:color/transparent"
                    app:sv_withTremble="false" />

I'm using the following code to create a tube speedometer, i've found how to set the background color but i haven't been able to change the color for the section which is filled in, it seems to always be blue, how do i change this ?

anastr commented 3 years ago

Tube speedometer follows Section color.