-
-
Notifications
You must be signed in to change notification settings - Fork 327
4. RaySpeedometer
Anas Altair edited this page Nov 3, 2016
·
5 revisions
speedometer with Blur Effects and without indicator.
RaySpeedometer raySpeedometer= (RaySpeedometer) findViewById(R.id.raySpeedometer);
// change speed to 50 Km/h
raySpeedometer.speedTo(50);
you can see all methods And Attributes at Get Started - Wiki.
// change the degree between the marks
raySpeedometer.setDegreeBetweenMark(3); //def : 5
// change marks width
raySpeedometer.setMarkWidth(2); //def : 3dp
// change Ray (the lines) color
raySpeedometer.setRayColor(Color.RED);
// set or remove Blur Effects.
raySpeedometer.setWithEffects(false);
// change Background Color of speed text.
raySpeedometer.setSpeedBackgroundColor(Color.RED);
app:withEffects="false" <!-- def : true -->
app:speedBackgroundColor="#000077"
app:rayColor="#d8ff0000" <!-- def : WHITE -->
app:degreeBetweenMark="7" <!-- def : 5 -->
app:markWidth="5dp" <!-- def : 3dp -->
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.