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

Unable to add pointer or set low value #24

Open
abhinav17says opened this issue May 6, 2020 · 1 comment
Open

Unable to add pointer or set low value #24

abhinav17says opened this issue May 6, 2020 · 1 comment

Comments

@abhinav17says
Copy link

Hi, I am using the 3.x version and the progress is ignoring the low value that I am giving. Progress is starting from 0 no matter what I do. Also, how can an image be added as a pointer to indicate the progress? I have tried but no result.

@psychegr
Copy link

Hi,

after loooots of trial and error and reading of the code i came up with this code which adds an image as a pointer.
I am adding this here as a reference.

`
final Bitmap indicator = BitmapFactory.decodeResource(this.getResources(), R.drawable.indicator02);

ScPointer pointer = gauge.getHighPointer();
pointer.setVisible(true);
pointer.setType(ScNotches.NotchTypes.BITMAP); // <======= this tells the repetition drawer that the pointer is a bitmap
pointer.setBitmap(indicator);`

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

No branches or pull requests

2 participants