android progressBar does not update progress view/drawable

后端 未结 15 2318
悲哀的现实
悲哀的现实 2020-11-28 09:11

two Bars which shows the progress of a game. If the user get points or time is up etc the progressBars should be updated:

private TextView tv;
private Progre         


        
15条回答
  •  鱼传尺愫
    2020-11-28 10:13

    Create updateThumb(); method in VerticalSeekbar

    public void updateThumb(){
         onSizeChanged(getWidth(), getHeight(), 0, 0);
    }
    

    And then call update thumb method after setting progress.

    seekBar.setProgress((int) progress);
    seekBar.updateThumb();
    

    its work for me in verticalseekbar calss

提交回复
热议问题