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

Not able to change Mark width, mark speed color in Ray speedometer #232

Closed shruti-techindustan closed 2 years ago

shruti-techindustan commented 2 years ago

Ray Speedometer I am using Ray speedometer and not able to change below points

I used sv_markWidth= "10dp"

To

XML & code <com.github.anastr.speedviewlib.RaySpeedometer android:id="@+id/raySpeedoMeter" android:layout_width="@dimen/_200sdp" android:layout_height="wrap_content" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:sv_backgroundCircleColor="@android:color/transparent" app:sv_cutPadding="0dp" app:sv_endDegree="360" app:sv_markColor="@color/grey_color" app:sv_markHeight="10dp" app:sv_maxSpeed="30" app:sv_minSpeed="16" app:sv_speedTextColor="@android:color/transparent" app:sv_speedTextPosition="BOTTOM_LEFT" app:sv_startDegree="180" app:sv_textColor="@android:color/transparent" app:sv_tickTextFormat="INTEGER" app:sv_unitTextSize="0dp" app:sv_unitUnderSpeedText="false" app:sv_withEffects="false" app:sv_withTremble="false" />

Screenshots I have attached the screenshot. Please check it.

image_2022_05_05T11_59_31_957Z

anastr commented 2 years ago

To change mark width use sv_rayMarkWidth.

To change colors use Sections.

shruti-techindustan commented 2 years ago

ok Thanks @anastr