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

高斯模糊 #267

Open
kinghom opened this issue Jan 3, 2023 · 23 comments
Open

高斯模糊 #267

kinghom opened this issue Jan 3, 2023 · 23 comments
Labels
持续关注 此问题暂时未能完成处理或找到问题的原因,继续保持关注 新需求 新功能需求标记

Comments

@kinghom
Copy link

kinghom commented Jan 3, 2023

功能建议

希望添加 高斯模糊 背景

需求描述:

请详细描述你的需求。

@kinghom kinghom added the 新需求 新功能需求标记 label Jan 3, 2023
@kinghom kinghom changed the title 【功能建议】请填写标题 高斯模糊 Jan 3, 2023
@kongzue
Copy link
Owner

kongzue commented Jan 3, 2023 via email

@kinghom
Copy link
Author

kinghom commented Jan 3, 2023

微信图片_20230103144526

类似这种 背景是有高斯模糊效果的

@kongzue
Copy link
Owner

kongzue commented Jan 3, 2023 via email

@kinghom
Copy link
Author

kinghom commented Jan 3, 2023

完全自定义对话框 我看到源码 有setMaskColor 这个方法 是改变背景颜色的 可以考虑增加一个 hasBlurBg (boolean)方法 处理背景

@kongzue
Copy link
Owner

kongzue commented Jan 3, 2023

已测试得到如下结果:
image
但这里存在一系列需要解决的问题:

  • 对话框底层布局 boxRoot 会有 padding 限制以规避“非安全区”,无法作为模糊层的载体;
  • 放在底层布局外(即 activity 的 decorView)则会导致不好维护生命周期,且多个对话框弹出后不好管理各自的模糊层;
  • 当多个对话框弹出后,模糊效果叠加可能存在性能问题,模糊是实时计算的,需要占用一定的内存和 GPU 资源,对于模糊层是采取多对话框共享一个模糊层(单例)还是独自的模糊层叠加有待讨论;
  • 模糊相关的参数(例如模糊半径、遮罩颜色)的相关设置项和接口需要设计,局部、组件范围内、全局范围的相关设置项需要设计;

因此暂时无法提供支持,会在后续相关需求多了之后提供支持。

@kongzue
Copy link
Owner

kongzue commented Jan 3, 2023

另外,此贴将持续保持开启状态不会结贴,如果其他人也有类似需求可在此讨论,后续会根据需求量考虑增加。

@kongzue kongzue added the 持续关注 此问题暂时未能完成处理或找到问题的原因,继续保持关注 label Jan 3, 2023
@kinghom
Copy link
Author

kinghom commented Jan 3, 2023

好的 感谢作者

@yuantris
Copy link

可以试着加一下, 看着挺舒服

@kinghom
Copy link
Author

kinghom commented Feb 17, 2023 via email

@stale
Copy link

stale bot commented Mar 26, 2023

长时间未收到回复暂时关闭了此问题,若有疑问请继续回复。此消息来自于自动化 Issues 处理 Bot,若问题严重或紧急你也可以通过反馈群联系到我:590498789

@stale stale bot added the 等待反馈 存疑或问题需要进一步确认 label Mar 26, 2023
@kinghom
Copy link
Author

kinghom commented Mar 26, 2023 via email

@stale stale bot removed the 等待反馈 存疑或问题需要进一步确认 label Mar 26, 2023
@stale
Copy link

stale bot commented Apr 10, 2023

长时间未收到回复暂时关闭了此问题,若有疑问请继续回复。此消息来自于自动化 Issues 处理 Bot,若问题严重或紧急你也可以通过反馈群联系到我:590498789

@stale stale bot added the 等待反馈 存疑或问题需要进一步确认 label Apr 10, 2023
@kinghom
Copy link
Author

kinghom commented Apr 10, 2023 via email

@stale stale bot removed the 等待反馈 存疑或问题需要进一步确认 label Apr 10, 2023
@stale
Copy link

stale bot commented Apr 26, 2023

长时间未收到回复暂时关闭了此问题,若有疑问请继续回复。此消息来自于自动化 Issues 处理 Bot,若问题严重或紧急你也可以通过反馈群联系到我:590498789

@stale stale bot added the 等待反馈 存疑或问题需要进一步确认 label Apr 26, 2023
@kinghom
Copy link
Author

kinghom commented Apr 26, 2023 via email

@stale stale bot removed the 等待反馈 存疑或问题需要进一步确认 label Apr 26, 2023
@stale
Copy link

stale bot commented May 11, 2023

长时间未收到回复暂时关闭了此问题,若有疑问请继续回复。此消息来自于自动化 Issues 处理 Bot,若问题严重或紧急你也可以通过反馈群联系到我:590498789

@stale stale bot added the 等待反馈 存疑或问题需要进一步确认 label May 11, 2023
@kinghom
Copy link
Author

kinghom commented May 11, 2023 via email

@stale stale bot removed the 等待反馈 存疑或问题需要进一步确认 label May 11, 2023
@stale
Copy link

stale bot commented May 26, 2023

长时间未收到回复暂时关闭了此问题,若有疑问请继续回复。此消息来自于自动化 Issues 处理 Bot,若问题严重或紧急你也可以通过反馈群联系到我:590498789

@stale stale bot added the 等待反馈 存疑或问题需要进一步确认 label May 26, 2023
@kinghom
Copy link
Author

kinghom commented May 26, 2023 via email

@stale stale bot removed the 等待反馈 存疑或问题需要进一步确认 label May 26, 2023
@stale
Copy link

stale bot commented Jun 10, 2023

长时间未收到回复暂时关闭了此问题,若有疑问请继续回复。此消息来自于自动化 Issues 处理 Bot,若问题严重或紧急你也可以通过反馈群联系到我:590498789

@stale stale bot added the 等待反馈 存疑或问题需要进一步确认 label Jun 10, 2023
@kinghom
Copy link
Author

kinghom commented Jun 10, 2023 via email

@stale stale bot removed the 等待反馈 存疑或问题需要进一步确认 label Jun 10, 2023
@stale
Copy link

stale bot commented Jun 25, 2023

长时间未收到回复暂时关闭了此问题,若有疑问请继续回复。此消息来自于自动化 Issues 处理 Bot,若问题严重或紧急你也可以通过反馈群联系到我:590498789

@stale stale bot added the 等待反馈 存疑或问题需要进一步确认 label Jun 25, 2023
@kinghom
Copy link
Author

kinghom commented Jun 25, 2023 via email

@stale stale bot removed the 等待反馈 存疑或问题需要进一步确认 label Jun 25, 2023
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

3 participants