Java Android how to make two parallel progress bars in recyclerview

28 Views Asked by At

I am making a game that has a recyclerview with several items, each item has its own progressbar filling time, I need them to fill in parallel and start over after completion.

I did it with asynctask. it seems to work, but after a few fills they start working sequentially, which does not suit me.

@Override
    protected void onPostExecute(Void aVoid) {
        super.onPostExecute(aVoid);
        repository.IncrBalancePotato(positionEnd);
        progressBar.setProgress(0);
        new ProgressBarAsyncTask(progressBar,progressItem,positionEnd).execute();
    }
}
0

There are 0 best solutions below