Android 进度条算法 更新进度条算法 long int
// TODO total总长度,current下载长度
double i = current / (double) total * 100;
int progress = (int) Math.ceil(i);
pdu.setTvProgress(progress + "/100%");
Android 进度条算法 更新进度条算法 long int
// TODO total总长度,current下载长度
double i = current / (double) total * 100;
int progress = (int) Math.ceil(i);
pdu.setTvProgress(progress + "/100%");