-
-
Notifications
You must be signed in to change notification settings - Fork 327
2. DeluxeSpeedView
Anas Altair edited this page Mar 11, 2017
·
5 revisions
Deluxe speedometer with Blur Effects.
![](https://github.com/anastr/SpeedView/raw/master/images/DeluxeSpeedView.gif)
add to xml
Layout:
<com.github.anastr.speedviewlib.DeluxeSpeedView
android:id="@+id/deluxeSpeedView"
android:layout_width="300dp"
android:layout_height="wrap_content" />
define speedometer in the code.
DeluxeSpeedView deluxeSpeedView= (DeluxeSpeedView) findViewById(R.id.deluxeSpeedView);
// change speed to 140 Km/h
deluxeSpeedView.speedTo(140);
you can see all methods And Attributes at Get Started - Wiki.
![](https://github.com/anastr/SpeedView/raw/master/images/DeluxeSpeedView1.png)
![](https://github.com/anastr/SpeedView/raw/master/images/DeluxeSpeedView2.png)
// set or remove Blur Effects.
deluxeSpeedView.setWithEffects(false);
// change Background Color of speed text.
deluxeSpeedView.setSpeedBackgroundColor(Color.RED);
app:sv_withEffects="false" <!-- def : true -->
app:sv_speedBackgroundColor="#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.