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

在setSupportLargeImage为true情况下 滚动视图不刷新 #15

Closed
yuruxuan opened this issue Oct 22, 2016 · 2 comments
Closed

在setSupportLargeImage为true情况下 滚动视图不刷新 #15

yuruxuan opened this issue Oct 22, 2016 · 2 comments
Labels

Comments

@yuruxuan
Copy link

yuruxuan commented Oct 22, 2016

代码是这样设置的

@Override
         public Object instantiateItem(ViewGroup view, final int position) {
            final SketchImageView imageView = new SketchImageView(browseImageActivity);
            imageView.setSupportLargeImage(true);
            imageView.setSupportZoom(true);
            imageView.displayImage(list.get(position));

            ViewGroup.LayoutParams layoutParams = new ViewPager.LayoutParams();
            view.addView(imageView, layoutParams);

            ImageZoomer zoomer = imageView.getImageZoomer();
            zoomer.setReadMode(true);
            zoomer.setOnViewLongPressListener(new ImageZoomer.OnViewLongPressListener() {
                @Override
                public void onViewLongPress(View view, float x, float y) {
                    browseImageActivity.popWindow.showAtLocation(LayoutInflater.from(browseImageActivity).inflate(R.layout.activity_main, null), Gravity.CENTER, 0, 0);
                }
            });

            return imageView;
        }

现象的视频发你邮箱(sky@xiaopan.me)了 跪求解决

@yuruxuan
Copy link
Author

是不是一定要Viewpager+Fragment+ SketchImageView,,,直接Viewpager + SketchImageView 不可以?

@panpf
Copy link
Owner

panpf commented Oct 22, 2016

2.3.0-beta2已解决此BUG,谢谢你的反馈!

@panpf panpf closed this as completed Oct 22, 2016
@panpf panpf added the bug label Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants