Can anyone assit me with thi sbackdrop issue :smil...
# compose
t
a
I've added an answer, I hope it helps
t
it does fix the issue , however i think i would need to calculate the bottom padding value instead of hardcoding one. also this fix feels a "hacky" like it isnt the correct approach to resolve this issue thanks for taking the time to answer my SO question 😄
a
Yep, I'll update in a moment with the calculated version. Fixing some issues with ADB not detecting my phone :_D
Updated 😄
I've added a version with a custom composable, so no workarounds are required.
p
but that solution will make that the lazy column will have to redraw entirely correct @Abdelilah El Aissaoui
again same answer as @Abdelilah El Aissaoui I think that looking to want you want to do product wise BAckdrop is not the solution Looking at the design specification of material design, seems to be an intentional design decision m2.material.io/components/backdrop#behavior
so if you want to filter I would go with a plain Scafolfd with content and have a some filter as action on the topbar
what do you gain with this ? • You can use Material 3 Scafold alowing you to pass scrollbehaviour. • ListColumn doesn't need to reder all when the filter is applied. • You can use a plain Box to have the same effect
by the way using material 2 and material 3 components in one new app seems a bit off I would avoid one unless you really need it.
btw @Tower Guidev2 you can see a complex BackDrop being aplied here https://github.com/android/compose-samples on the crane app
a
but that solution will make that the lazy column will have to redraw entirely correct @Abdelilah El Aissaoui
I've tested an only the last item gets recomposed and the container itself, the other items are not. Let me know if I'm missing something.
t
thanks for all the time you have both spent looking at this issue i really appreciate it... our backdrop is not used to filter, but for app navigation between the top level screens eventually the backdrop will also host the user account details and app settings we cannot remove the backdrop as out product owner (along with our UI/UX) have made it the foundational component of a suite of apps
@Pedro Alberto i looked at the crane app it is not a viable solution for my use case as it does not allow the user to scroll the frontlayer list and keep the backdrop revealed
p
I just gave you an app that uses it but as you can see the solution was not designed for what you want