kofigyan / StateProgressBar

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

Issue while setting Current state number dynamically #2

Closed amitsri20 closed 7 years ago

amitsri20 commented 7 years ago

I am trying to set current state number dynamically but it is not showing correct result while when I set in XML file it works fine.

I have used stateProgressBar.setCurrentStateNumber(StateProgressBar.StateNumber.TWO);

after removing app:spb_currentStateNumber="two" from XML file.

See the result below current description is showing correctly but progress line is going to opposite direction.

issue

kofigyan commented 7 years ago

Hi Amit, I have tried to reproduce similar result with all possible scenarios but all work fine on multiple devices. Please can you show elaborate codes ? Are you testing in an emulator or specific device ? Does it occur after certain action e.g. screen orientation change etc ? Any extra information will be useful.

amitsri20 commented 7 years ago

Hi, I am sharing the video of my scenario. https://drive.google.com/file/d/0B97xPWRVxZSPRzNqS3JSOFdFVTg/view?usp=sharing

As you will see in the video, it does not happen every time but if I am opening activity with status view multiple times few times I face the problem.

Please suggest.

amitsri20 commented 7 years ago

Hi,

One thing I figured out about this is that it only happens when the animation is set to true.

kofigyan commented 7 years ago

Thank you Amit for the extra information. Found the possible reason for this anomaly. Will work on it over the weekend and update you thereafter. On 20 Jan 2017 10:47, "Amit Srivastava" notifications@github.com wrote:

Hi,

One thing I figured out about this is that it only happens when the animation is set to true.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kofigyan/StateProgressBar/issues/2#issuecomment-274042815, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKgpGmBKLOZnk230OptbaRrjIlLUR3lks5rUJDUgaJpZM4LZB5q .

kofigyan commented 7 years ago

Hi Amit, I believe the issue is resolved now. I am adding the other feature requests by the various users to form version 0.0.2 . You can download the stateprogressbar library(or copy the classes together with the asset and values folders contents) from the master branch into your project for now and test. Your feedback will be appreciated.

amitsri20 commented 7 years ago

Sure, I will test and tell you back.

Thanks

On Tue, 31 Jan 2017 at 6:31 AM, Kofi Gyan notifications@github.com wrote:

Hi Amit, I believe the issue is resolved now. I am adding the other feature requests by the various users to form version 0.0.2 . You can download the stateprogressbar library(or copy the classes together with the asset and values folders contents) from the master branch into your project for now and test. Your feedback will be appreciated.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kofigyan/StateProgressBar/issues/2#issuecomment-276242022, or mute the thread https://github.com/notifications/unsubscribe-auth/AEjNV0Z_ztC0nPzGrLowfI2iNdUmVqeyks5rXofmgaJpZM4LZB5q .

apaul10 commented 7 years ago

Hello,

I am realizing the same issue, when using progressBar inside Listview/RecyclerView, when one item is being set, all items are being updated with the same value.

kofigyan commented 7 years ago

Hi @apaul10 , I believe the issue raised by @amitsri20 is resolved and will be available in version 0.0.2 soon. You can download the stateprogressbar library(or copy the classes together with the asset and values folders contents) from the master branch into your project for now.

kofigyan commented 7 years ago

Hi @amitsri20 and @apaul10 , Version 0.0.2 of the library is now officially released. You can now use this version as it solves this issue.

apaul10 commented 7 years ago

@kofigyan Thanks much

kofigyan commented 7 years ago

@apaul10 You are welcome.

amitsri20 commented 7 years ago

Great job will check the latest one..thanks a lot for creating such a good library.

On Sun, Feb 5, 2017 at 6:38 PM, Kofi Gyan notifications@github.com wrote:

@apaul10 https://github.com/apaul10 You are welcome.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kofigyan/StateProgressBar/issues/2#issuecomment-277518723, or mute the thread https://github.com/notifications/unsubscribe-auth/AEjNV4MI5q6Ixf-ezVC3nwNjgUCehNBCks5rZcnagaJpZM4LZB5q .

kofigyan commented 7 years ago

You are welcome Amit. On 6 Feb 2017 06:51, "Amit Srivastava" notifications@github.com wrote:

Great job will check the latest one..thanks a lot for creating such a good library.

On Sun, Feb 5, 2017 at 6:38 PM, Kofi Gyan notifications@github.com wrote:

@apaul10 https://github.com/apaul10 You are welcome.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kofigyan/StateProgressBar/issues/2# issuecomment-277518723, or mute the thread https://github.com/notifications/unsubscribe-auth/AEjNV4MI5q6Ixf- ezVC3nwNjgUCehNBCks5rZcnagaJpZM4LZB5q .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kofigyan/StateProgressBar/issues/2#issuecomment-277599030, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKgpBDXYJjyTU7DoI71z35AMgcFwnqjks5rZsLhgaJpZM4LZB5q .

kofigyan commented 7 years ago

@amitsri20 l will be waiting for your immediate feedback to close this issue.