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

GPreviewBuilder.setFullscreen (true) 设置全屏 返回时有位置偏移,很诡异的偏移,希望适配一下全屏显示 #99

Closed
PangHaHa12138 opened this issue Mar 10, 2019 · 5 comments

Comments

@PangHaHa12138
Copy link

GPreviewBuilder.from((Activity)mContext)
.setData(list)
.setFullscreen(true)
.setCurrentIndex(position)
.setType(GPreviewBuilder.IndicatorType.Dot)
.start();//启动
设置 全屏显示 返回时有诡异的位置偏移,感觉是计算坐标时需要考虑状态栏的高度,希望能适配一下 ,多谢啦

@PangHaHa12138
Copy link
Author

startTransform.left = thumbRect.left;
// startTransform.top = thumbRect.top - ImageUtils.getStatusBarHeight(getContext());
startTransform.top = thumbRect.top;
全屏的问题找到解决方案了 原来是算坐标的时候把状态栏高度加进去了,去掉状态栏高度就可以实现全屏了

@yangchaojiang
Copy link
Owner

好的谢谢,的完善的 我今天加上

@yangchaojiang
Copy link
Owner

更新了你看一下

@kimlllll
Copy link

图片加载完成,进度条无法隐藏

@yangchaojiang
Copy link
Owner

@kimlllll 查看你回调处理哦

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

3 participants