Android Question Multiple seekbars

syncmaster13

Member
Licensed User
Longtime User
HI

How to program 3 seekbars that are “connected” to each other by a maximum value.

Maximum value is simply calculated as seekbar1.value + seekbar2.value + seekbar3.value

Let say a user set up maximum value 30. While a user is sliding seekbar1.value to 10, seekbar2.value to 10 nothing will happen but when seekbar3.value will change to 10 or more then first and second seekbar should change values automatically to keep within maximum value.


Thanks
 

syncmaster13

Member
Licensed User
Longtime User
I did that (was just subtracting -1 from value) but seekbars just don't behave "nice". Is there an example made from more experienced programmers?

Thanks
 
Upvote 0
Top