sc-gauges icon indicating copy to clipboard operation
sc-gauges copied to clipboard

Unable to add pointer or set low value

Open abhinav17says opened this issue 4 years ago • 1 comments

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.

abhinav17says avatar May 06 '20 07:05 abhinav17says

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);`

psychegr avatar Dec 11 '22 14:12 psychegr