我已经在XML文件中设置了4个图像视图的图像,现在单击按钮我想要更改所有4个图像视图的图像。5秒的按钮单击后,所有的图像应该会变成原始图像。
发布于 2018-09-07 01:53:44
您可以使用线程来完成此操作,如下所示:
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);
}https://stackoverflow.com/questions/52209379
复制相似问题