I'm kind of new to this whole thing so I need some help. I have an application that creates an ImageView OnCreate. I want to make this image clickable and have it open a browser to a specific link.
How would I do this? I'm having trouble specifically with the setOnClickListener because the parameters are not accepting an OnClickListener.
I'm developing for Android 1.6
You shoud set ImageView property clickable to true. Then set listener:
mImageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// do stuff
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With