kofigyan / StateProgressBar

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

Stages Are not changing dynamically as per requirement. #40

Open bhuvaneswarisiddhi opened 5 years ago

bhuvaneswarisiddhi commented 5 years ago

Dear kofigyan, I am developing one application in that we are using page indicator , each slider we are implementing
stage ProgressBar with Different Stages like first stage have 7 stages and 2nd stage have only 2 stages. now the issue is when we are ending the session and restarting it, the number of stages in the stage progress bar is not changing as per the requirement.

kofigyan commented 5 years ago

Hi @bhuvaneswarisiddhi , please can you break your issue down,l am having trouble understanding it well, if possible attached some screenshots.

bhuvaneswarisiddhi commented 5 years ago

We have different protocols, each protocol has different number of stages and we implemented stages using stage progressbar to indicate stage progress(refer image "prtocol_with_stages"). For example protocol1 has 2 stages(refer image "prtocol1_with_2_stages") and protocol2 has 7 stages(refer image"prtocol2_with_7_stages"). Now what the problem is, when we try to end protocol1(2 stages) and try to open protocol2(7 stage) we have some UI alignment issue like in UI it's showing only 2 stages instead of 7 stages(refer image "UIalignproblem_prtocol2_with_7_stages").

prtocol_with_stages

prtocol1_with_2_stages 2

prtocol2_with_7_stages

uialignproblem_prtocol2_with_7_stages

kofigyan commented 5 years ago

Hi @bhuvaneswarisiddhi , sorry for the delay in reply. I have gone through the explanation with screenshots attached. My little observation : 1. Your current solution looks like a fork(or modification) of the original library. Example is the modification of the maximum state from 5 to 7. I have limited the maximum state to 5 because of design decision which l am working on to enable me to allow infinite number of states. Therefore l will have to perhaps write an exclusive or tailored made solution to met your particular use case. 2. There could be a possible makeshift solution until the final/stable release of the infinite number of states. I will explore this further and give you a feedback by this weekend.

bhuvaneswarisiddhi commented 5 years ago

OK as early as possible can you give some suggestion to solve that issue.

kofigyan commented 5 years ago

Send me a quick mail Email address : kofigyan2011@gmail.com Skype : kofigyan2011

stpn27 commented 5 years ago

Sir how to update the state of the progress bar?