Android: Updating UI with a Button?
问题 So I have some simple code but it seems to not be working.. any suggestions? I just want an image to show after a button is pressed then become invisible after 2 seconds. button.setOnClickListener(new OnClickListener() { public void onClick(View v) { firstImage.setVisibility(ImageView.VISIBLE); // delay of some sort firstImage.setVisibility(ImageView.INVISIBLE); } } The image never shows, it always stays invisible, should I be implementing this in another way? I've tried handlers.. but it