Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以禁止手势放大 #59

Open
WZRRRRRR opened this issue May 24, 2019 · 2 comments
Open

是否可以禁止手势放大 #59

WZRRRRRR opened this issue May 24, 2019 · 2 comments

Comments

@WZRRRRRR
Copy link

如题

@Colcode
Copy link

Colcode commented May 25, 2020

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

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;// 最大缩放系数
}

});

@WZRRRRRR
Copy link
Author

WZRRRRRR commented May 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants