Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Component used: androidx.cardview:cardview Version used: 1.0.0 Devices/Android versions reproduced on: Huawei Tablet in Android 12
I want to achieve the projection effect of a point light source (the position of the light source is the top-center position of the widget itself), but I found that the projection effect will be different when CardView is in different positions of the screen.
I consulted the relevant documents and explained that the position of the point light source is in the top-center position of the screen. I would like to ask whether it is possible to achieve the point light projection effect based on the widget itself(top-center)?
here is my test code:
and the outlineSpotShadowColor property is dynamically set in the code based on the domain color of the image.
Looking forward to your reply, thanks a lot!