Problem With Replacing an Image

All your problems with Audio, Video and Images.

Problem With Replacing an Image

Postby X-RoNiN » Wed May 25, 2011 2:34 pm

Hi there,

I have a problem replacing an existing image with a new one. The first image ist loaded correctly, but when I
click the button to load the second image, the first image remains in the background and the second is overlayed.

Code: Select all
final ImageView bild = (ImageView) findViewById(R.id.imageView1);
bild.setImageResource(R.drawable.schnee);

Button closeButton3 = (Button)this.findViewById(R.id.btn_heute);
closeButton3.setOnClickListener(new OnClickListener()
{
          public void onClick(View v)
          {
              bild.setImageResource(R.drawable.regen);
          }
});



What can I do to fix the problem?
Thanks for the help!
X-RoNiN
Freshman
Freshman
 
Posts: 2
Joined: Wed May 25, 2011 2:16 pm

Top

Re: Problem With Replacing an Image

Postby prabu » Thu May 26, 2011 10:31 am

It is a nice sharing.....
prabu
Freshman
Freshman
 
Posts: 6
Joined: Thu May 26, 2011 10:25 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 13 guests