How to make a delay that can be seen? I need to move the seekbar automatically when loading the activation, and I need to see the process of movement. I tried:
for(int i = 0; i < 10; i++) { try { Thread.sleep(600); seekBar.setProgress(i+7); } catch (InterruptedException e) { e.printStackTrace(); } } And the process of movement jumps over, that is, it is performed, but the process is not visible.
for(int i = 0; i < 200; i++) { try { Thread.sleep(50); seekBar.setProgress(i+0.35); } catch (InterruptedException e) { e.printStackTrace(); } }for(int i = 0; i < 200; i++) { try { Thread.sleep(50); seekBar.setProgress(i+0.35); } catch (InterruptedException e) { e.printStackTrace(); } }(in short, just increase the number of steps) // most likely there are ready-made solutions and this is a crutch - Nikita Gordeyev