kofigyan / StateProgressBar

Android library to realize the various states and transitions in a ProgressBar.
1.54k stars 233 forks source link

StateProgressBar not showing run time changes when used inside Recyclerview #26

Open vijithasharma opened 6 years ago

vijithasharma commented 6 years ago

I am using stateprogressbar to show the row state of recyclerview. When reyclerview row is clicked, it will show the progress status of that row.

I am trying to make changes on to stateprogressbar during run time on the onPostExecute() method of AsynchTask. I am getting names, max states and current state from server - names for node in the form of string array, max state number and current state number in the form of string. But stateprogressbar is not reflecting the data in run time!! Just wondering why? And how to solve this issue?

kofigyan commented 6 years ago

Hi @vijithasharma the features are fully implemented now and available to the general public. How to use :

  1. Add to build.gradle implementation 'com.kofigyan.stateprogressbar:stateprogressbar:0.0.8'

  2. Add the following codes `stateProgressBar.setOnStateItemClickListener(new OnStateItemClickListener() { @Override public void onStateItemClick(StateProgressBar stateProgressBar, StateItem stateItem, int stateNumber, boolean isCurrentState) { Toast.makeText(getApplicationContext(), "state Clicked Number is " + stateNumber, Toast.LENGTH_LONG).show();

        }
    });`
kofigyan commented 6 years ago

Full documentation coming soon.