我试图在 android 中构建一个进度条,如您所知,progress bar get int for progress,但我需要将 float 传递给进度条,我该怎么办?
private Runnable myThread = new Runnable(){
@Override
public void run() {
mypb = mypb + 100 / time;
pb.setProgress(mypb);
}
};