kofigyan / StateProgressBar

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

Two questions #51

Open roybill opened 4 years ago

roybill commented 4 years ago

1:How to customize the maximum value?The current maximum is 5, app:spb_maxStateNumber="five"
2.Setting animation duration does not work: stateProgressBar = (StateProgressBar) findViewById(R.id.your_state_progress_bar_id); stateProgressBar.setStateDescriptionData(descriptionData); stateProgressBar.setAnimationDuration(5000);

kofigyan commented 4 years ago

Hi @roybill , sorry for the delay in reply. Please the current maximum number implementation is five as you rightly noted. I am working on expanding on it from 1 .. 5 to 1 .. N (Infinity). I will update you when this implementation is done. On your second question. The default animation duration is 4000. Changing the duration should work in all situations. Please can you cross check(test) with a larger value and give me the feedback.