Skip to content

1. SpeedView

Anas Altair edited this page Dec 22, 2016 · 4 revisions

this is normal Speedometer, it doesn't have any special methods.

simple usage

add to xml Layout:

<com.github.anastr.speedviewlib.SpeedView
        android:id="@+id/speedView"
        android:layout_width="300dp"
        android:layout_height="wrap_content" />

define speedometer in the code.

SpeedView speedView = (SpeedView) findViewById(R.id.speedView);

// change MAX speed to 320
speedView.setMaxSpeed(320);
// change speed to 140 Km/h
speedView.speedTo(140);

you can see all methods And Attributes at Get Started - Wiki.