I have a little problem: I would like to exit the content view that I can started when I click on an image of the layout. The code is:
final View thumb1View = findViewById(R.id.gorgovivofoto1);
thumb1View.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
TouchImageView img = new TouchImageView(view.getContext());
img.setImageResource(R.drawable.gorgovivofoto1);
img.setMaxZoom(4f);
setContentView(img);
}
});
This code open a new content view where I can zoom my image, but I want to return back on double click on the image. Is it possible?