An error is reported when assigning a value to the TextView and it crashes directly

 s1=(Integer)progressBar1.getProgress();
        s2=(Integer)progressBar2.getProgress();
        s3=(Integer)progressBar3.getProgress();

       life.setText(Integer.toString(s1));
        attack.setText(Integer.toString(s2));
        speed.setText(Integer.toString(s3));

 

Guess you like

Origin blog.csdn.net/weixin_41967600/article/details/88883249