sc-gauges
sc-gauges copied to clipboard
Unable to add pointer or set low value
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.
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);`