为TextView赋值时报错直接崩溃

 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));

猜你喜欢

转载自blog.csdn.net/weixin_41967600/article/details/88883249