-
Notifications
You must be signed in to change notification settings - Fork 762
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
[Droid] AcrylicBrush not working - improve doc? #6919
Comments
/cc @MartinZikmund |
This might be a bug, I will verify |
I never got this working on Android myself and always use the fallback color. I assumed I was using it incorrectly. Somewhat related discussion: #5819. |
I can confirm that : does not currently work on android.
|
I hoped this could make it into 3.10. Would love to have this in 3.11. :) |
@TopperDEL I have found out the problem (or rather cause, as it is not technically a bug). Because Android and iOS require additional elements in the visual tree to be able to properly render acrylic effect, the blur "owner" should ideally be an empty element - e.g.
I will be updating the documentation with this information, but for now this is the recommended workaround. In the future this will not be needed, but we will need to introduce a concept of "internal uno elements" in the visual tree, so that the |
Thank @MartinZikmund! This at least is a small workaround I can confirm works. Do you know, though, how this acrylic is done technically? I have an app where I render plenty of images ok a skiasharp-Canvas. And the AcrylicBrush renders those images "unzoomed". They appear to be very small behind the brush. Will upload screenshots later. |
Difficult to see - but on the second image above those three little pictures are directly next to the big one. Scrolling it below the AcrylicBrush you can see that thos images have a "white border" - they are rendered smaller below the acrylic brush. |
I tried to understand the coding around AcrylicBrush, but I did not really understand what's happening. But I guess my rendering issues must have something to do with MeasuredWidth/Height and maybe with different DPI on Android? |
The current |
What would you like clarification on:
The docs state, that AcrylicBrush should work on Android if set on Elements without children. For me it is not working but I'm not sure, if I just misunderstand the docs.
This is what I wan to achieve:
This is what I tried according to the docs:
On UWP I can see the Brush, on Android I don't. Do I do it wrong? If yes, the doc might need to be more clearly.
Concern?
For which Platform:
Anything else we need to know?
The text was updated successfully, but these errors were encountered: