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

拖动还原的过程中,双指放大会然后松手图片会卡在那里 #58

Closed
dennyson-w opened this issue Jun 21, 2018 · 10 comments
Closed

Comments

@dennyson-w
Copy link

如题。

@yangchaojiang
Copy link
Owner

有截图吗

@dennyson-w
Copy link
Author

tim 20180622172905

@dennyson-w
Copy link
Author

还有就是不知道为什么我接入到我的项目中,切换图片的时候很卡。几乎卡死。 @yangchaojiang

@yangchaojiang
Copy link
Owner

你的图片是不是都很大哦

@dennyson-w
Copy link
Author

dennyson-w commented Jun 23, 2018

第一个bug是你demo中就有的,图片的话可能是有点大,这是我用到的一个图片地址http://dev.storage.singworld.net/5/5/app_aa4fae8586358364e543034e72e9c160.jpeg @yangchaojiang

@yangchaojiang
Copy link
Owner

建议图片进行缩放处理。好些。 第一个我在处理

@yangchaojiang
Copy link
Owner

久等了。版本是2.1.5已修复

@yangchaojiang
Copy link
Owner

谢谢支持。star一下

@dennyson-w
Copy link
Author

感谢作者及时修复,已经star,但是加载这种http://dev.storage.singworld.net/5/5/app_aa4fae8586358364e543034e72e9c160.jpeg 大图的需求还是存在的,希望后期能处理一下。

@yangchaojiang
Copy link
Owner

这个你根据你是图片加载框架可以解决的。 例如用gilde
.asBitmap()
.load(path)
.fitCenter()
.override(700,800)//图片缩放处理。

   GlideApp.with(context.getActivity())
                .asBitmap()
                .load(path)
                .fitCenter()
                .override(700,800)
                .error(R.mipmap.loadinging_pic)
                .into(new SimpleTarget<Bitmap>() {
                    @Override
                    public void onResourceReady(Bitmap resource, Transition<? super Bitmap> transition) {
                        simpleTarget.onResourceReady(resource);
                    }

                    @Override
                    public void onLoadStarted(Drawable placeholder) {
                        super.onLoadStarted(placeholder);
                        simpleTarget.onLoadStarted();
                    }

                    @Override
                    public void onLoadFailed(@Nullable Drawable errorDrawable) {
                        super.onLoadFailed(errorDrawable);
                        simpleTarget.onLoadFailed(errorDrawable);
                    }
                });
````

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