-
-
Notifications
You must be signed in to change notification settings - Fork 325
1. SpeedView
Anas Altair edited this page Dec 22, 2016
·
4 revisions
this is normal Speedometer, it doesn't have any special methods.
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.
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.