setPanEnabled

public final void setPanEnabled(boolean panEnabled)

Enable or disable pan gesture detection. Disabling pan causes the image to be centered. Pan can still be changed from code.

Parameters

panEnabled

true to enable panning, false to disable.