-
-
Notifications
You must be signed in to change notification settings - Fork 324
6. TubeSpeedometer
Anas Altair edited this page Jul 16, 2021
·
4 revisions
speedometer with 3D Effects.
add to xml
Layout:
<com.github.anastr.speedviewlib.TubeSpeedometer
android:id="@+id/tubeSpeedometer"
android:layout_width="300dp"
android:layout_height="wrap_content" />
define speedometer in the code.
val tubeSpeedometer = ...
// change MAX speed to 320
tubeSpeedometer.maxSpeed = 320f
// change speed to 140 Km/h
tubeSpeedometer.speedTo(140f)
you can see all methods And Attributes at Get Started - Wiki.
// change Speedometer background Color.
tubeSpeedometer.speedometerBackColor = Color.GRAY
app:sv_speedometerBackColor="#000077"
if you have any idea, image, template please open new issue and give me the image , and i well try to add it to the Library, it must be possible to drawn, if you like this library you can support it.