Blueforcer Well-Known Member Licensed User Longtime User Apr 5, 2022 #1 I have a panel inside another transparent background panel. But the elevation shadow is cut of by the background panel. It seems like its the same problem mentioned here: Android "elevation" not showing a shadow I have a ListView, and with each list item I want it to show a shadow beneath it. I am using Android Lollipop's new elevation feature to set a Z on the View that I want to cast a shadow, and am alr... stackoverflow.com According to some answers i assume to set android: outlineProvider="bounds" How can i show the shadow though the backgroundpanel in B4A? a example is attached Attachments Example (3).zip Example (3).zip 9 KB · Views: 466 Last edited: Apr 28, 2022
I have a panel inside another transparent background panel. But the elevation shadow is cut of by the background panel. It seems like its the same problem mentioned here: Android "elevation" not showing a shadow I have a ListView, and with each list item I want it to show a shadow beneath it. I am using Android Lollipop's new elevation feature to set a Z on the View that I want to cast a shadow, and am alr... stackoverflow.com According to some answers i assume to set android: outlineProvider="bounds" How can i show the shadow though the backgroundpanel in B4A? a example is attached
LucaMs Expert Licensed User Longtime User Jul 7, 2022 #22 LucaMs said: Add a third "shadow panel". Click to expand... I set the color of the background panel to Blue, just to see it as test. Attachments ExampleLM.zip ExampleLM.zip 9.3 KB · Views: 404 Upvote 0
LucaMs said: Add a third "shadow panel". Click to expand... I set the color of the background panel to Blue, just to see it as test.
Blueforcer Well-Known Member Licensed User Longtime User Jul 7, 2022 #23 LucaMs said: View attachment 131163 Click to expand... LucaMs said: I set the color of the background panel to Blue, just to see it as test. Click to expand... But it doesnt look like a android eleveation shadow in any way ;-) Instead of cheating, I would like to solve the real problem. I cant add any other views. Upvote 0
LucaMs said: View attachment 131163 Click to expand... LucaMs said: I set the color of the background panel to Blue, just to see it as test. Click to expand... But it doesnt look like a android eleveation shadow in any way ;-) Instead of cheating, I would like to solve the real problem. I cant add any other views.
LucaMs Expert Licensed User Longtime User Jul 7, 2022 #24 Blueforcer said: cheating Click to expand... There is nothing more fun than cheating ? It "works", so do not waste time. Upvote 0
Blueforcer said: cheating Click to expand... There is nothing more fun than cheating ? It "works", so do not waste time.
Blueforcer Well-Known Member Licensed User Longtime User Jul 7, 2022 #25 LucaMs said: There is nothing more fun than cheating ? It "works", so do not waste time. Click to expand... Its not about "works". its about perfection. And it also doesnt work, because it doesnt look like a shadow in any way But thanks for your try Upvote 0
LucaMs said: There is nothing more fun than cheating ? It "works", so do not waste time. Click to expand... Its not about "works". its about perfection. And it also doesnt work, because it doesnt look like a shadow in any way But thanks for your try
LucaMs Expert Licensed User Longtime User Jul 7, 2022 #26 Blueforcer said: And it also doesnt work, because it doesnt look like a shadow in any way Click to expand... Change its transparency (alpha). Upvote 0
Blueforcer said: And it also doesnt work, because it doesnt look like a shadow in any way Click to expand... Change its transparency (alpha).
Blueforcer Well-Known Member Licensed User Longtime User Jul 7, 2022 #27 LucaMs said: Change its transparency (alpha). Click to expand... Again, i cant add another panel. And even with alpha it doesnt look like a shadow because a shadow is falling off. And i want the global shadow angle from the android OS. Just compare a real android elevation shadow with your method.. Upvote 0
LucaMs said: Change its transparency (alpha). Click to expand... Again, i cant add another panel. And even with alpha it doesnt look like a shadow because a shadow is falling off. And i want the global shadow angle from the android OS. Just compare a real android elevation shadow with your method..
Blueforcer Well-Known Member Licensed User Longtime User Jul 7, 2022 #29 LucaMs said: View attachment 131165 Click to expand... No, bro. Thats look like 2005. this is the shadow i need. Without a third panel Upvote 0
LucaMs said: View attachment 131165 Click to expand... No, bro. Thats look like 2005. this is the shadow i need. Without a third panel
Blueforcer Well-Known Member Licensed User Longtime User Jul 7, 2022 #31 LucaMs said: Mine is more beautiful ? Click to expand... Matter of opinion Upvote 0
S Spavlyuk Active Member Licensed User Longtime User Jul 7, 2022 #32 What's the purpose of the background panel? Can you not just make it larger so the shadow isn't cut off? Upvote 0
What's the purpose of the background panel? Can you not just make it larger so the shadow isn't cut off?