Skip to content

scratchView onProgress always returns 0 #4

Description

@tao101
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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions