LargeImage icon indicating copy to clipboard operation
LargeImage copied to clipboard

是否可以禁止手势放大

Open WZRRRRRR opened this issue 5 years ago • 2 comments

如题

WZRRRRRR avatar May 24 '19 08:05 WZRRRRRR

// 大图--禁止双指缩放功能

largeImageView.setCriticalScaleValueHook(new LargeImageView.CriticalScaleValueHook() {

   @Override
public float getMinScale(LargeImageView largeImageView, int imageWidth, 
		int imageHeight, float suggestMinScale) {
	return 1;// 最小缩放系数
}


@Override
public float getMaxScale(LargeImageView largeImageView, int imageWidth,
		int imageHeight, float suggestMaxScale) {
	return 1;// 最大缩放系数
}

});

Colcode avatar May 25 '20 09:05 Colcode

好的 十分感谢

| | woshiwangzeran | | 邮箱:[email protected] |

Signature is customized by Netease Mail Master

在2020年05月25日 17:51,Colcode 写道:

// 大图--禁止双指缩放功能 largeImageView.setCriticalScaleValueHook(new LargeImageView.CriticalScaleValueHook() { @override public float getMinScale(LargeImageView largeImageView, int imageWidth, int imageHeight, float suggestMinScale) { return 1;// 最小缩放系数 }

@Override

public float getMaxScale(LargeImageView largeImageView, int imageWidth, int imageHeight, float suggestMaxScale) {

return 1;// 最大缩放系数

}

});

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

WZRRRRRR avatar May 25 '20 09:05 WZRRRRRR