【发布时间】:2015-08-04 15:03:30
【问题描述】:
我想像幻灯片一样显示图像,但我不能让它在显示下一张图像之前暂停 5 秒...
我试图让线程休眠,但它暂停了 15 秒并显示了最后(第 3 个)图像。
for (int i = 0; i < 3; i++) {
File imgFile = new File(paths[i]);
if(imgFile.exists()){
Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());
mimage.setImageBitmap(myBitmap);
}
//**I want the thread pause for 5 seconds here**
}
【问题讨论】:
标签: android