ScratchView
ScratchView copied to clipboard
scratchView onProgress always returns 0
private int getPercent(){
perc = 0;
scratchView.setEraseStatusListener(new ScratchView.EraseStatusListener() {
@Override
public void onProgress(int percent) {
perc = percent;
}
@Override
public void onCompleted(View view) {
}
});
return perc;
}
scratchView onProgress doesn't return the percent always returns 0 can you help me solve this
use executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, width, height); instead of execute(width, height);
inside onErase() method.