Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageSpeedometer doesnt change the speed #36

Closed
telmoaldalur opened this issue Jul 21, 2017 · 1 comment
Closed

ImageSpeedometer doesnt change the speed #36

telmoaldalur opened this issue Jul 21, 2017 · 1 comment

Comments

@telmoaldalur
Copy link

telmoaldalur commented Jul 21, 2017

Hi!

I want to use the Imageview with the image that you put in the wiki:
imagespeedometer

And this is xml code that i use:

<com.github.anastr.speedviewlib.ImageSpeedometer
                        android:id="@+id/imageSpeedometer"
                        android:layout_width="300dp"
                        android:layout_height="wrap_content"
                        app:sv_image="@drawable/imagespeedometer"
                        app:sv_speedTextColor="@android:color/transparent"
                        app:sv_unitTextColor="@android:color/transparent"

                        />

And then I use this code in the activity:


ImageSpeedometer imageSpeedometer = (ImageSpeedometer) findViewById(R.id.imageSpeedometer);
        imageSpeedometer.speedTo(60);

But when I execute the app the speed doesnt change to 60.

Do you know why happen?

Thanks for all the work!!!!

@anastr
Copy link
Owner

anastr commented Jul 21, 2017

how you can see that it doesn't change while you set sv_speedTextColor as transparent color !!
to see the change you have to add Indicator like app:sv_indicator="LineIndicator" or change speedTextColor to something visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants