kofigyan/StateProgressBar

StateProgressBar not showing run time changes when used inside Recyclerview

Opened this issue · 2 comments

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?

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

         }
     });`
    

Full documentation coming soon.