BIBEKRBARAL
BIBEKRBARAL

Reputation: 4475

show hide image in android

i have a code like this Bitmap bm = BitmapFactory.decodeResource(getResources(), R.drawable.correct); newImg = (ImageView)findViewById(R.id.rwans); newImg.setImageBitmap(bm);

but i want after a second, image should fade out or it display nothing or as previous state. thank you

Upvotes: 2

Views: 11515

Answers (1)

Samuh
Samuh

Reputation: 36484

post a delayed message to the Handler and do a ImageView.setVisibility(View.INVISIBLE). To achieve the fade out effect you can use an Animation.

Upvotes: 10

Related Questions