Is there a common way to show a big image and enable the user to zoom in and out and pan the image?
Until now I found two ways:
I just integrated Robert Foss's TouchImageView: it worked perfectly out of the box! Thanks!
I just modified a bit the code so I could be able to instantiate it from my layout.xml.
Just add two constructors
public TouchImageView(Context context, AttributeSet attrs) {
super(context, attrs);
init(context);
}
public TouchImageView(Context context) {
super(context);
init(context);
}
and transform the old constructor into an init method:
private void init(Context context){
//...old code ofconstructor of Robert Moss's code
}