我已经在XML文件中的4个图像视图上设置了图像,现在单击按钮我想更改所有4个图像视图的图像。单击按钮 5 秒后,所有图像都应更改为原始图像。
您可以使用如下线程来执行此操作:
OnClick(View view){
//change the images of all images view
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
//change the images for all images view to previous ones
}
}, 5000);
}