I have 6 SeekBars that range from 0-3000. I also have an algorithm that figures out what the difference would be if you would adjust one of the seekbars, so that at all times, all of the seekbars total will equal 3000. For example, if seekbar #1 = 1500 and seekbar #2 = 1500 and I change seekbar #1 to 1000, the difference would equal 500 and seekbar should jump to 2000 (1000 + 2000 = 3000). I can find the difference, but how to I update the other sliders?
Share
SeekBaris a descendant ofProgressBar, therefore you should be able to callincrementProgressBy(int diff)on it. So, if you need to increment a slider by 500, you can callOf course you’ll need to keep track of where it is now so that you don’t increment beyond the maximum allowed limit.