G
G
Gregory2019-08-09 07:15:12
Java
Gregory, 2019-08-09 07:15:12

How to limit SeekBar movement?

I have 3 SeekBars and a TextView showing the total number of points. I want to make it so that the total points are spent when any of the sikbars move and the sikbars are blocked from moving to the right (to increase points) if the total points are over.
For example, I have 10 total points and 3 sikbars, each with 10 spaces. If I put one on 3, the second on 5, then I have to bring the third to a value of 2, after which I want to block the movement to the right. But to the left, to decrease, the sikbar must also move to redistribute the points if the user wants it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Dugin, 2017-12-20
@Pain123

d = {a: 0}
or
d = dict.fromkeys([a], 0)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question