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: 463 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
DonManfred Expert Licensed User Longtime User Apr 5, 2022 #2 Blueforcer said: According to some answers i need to set android: outlineProvider="bounds" How can i do this in B4A? Click to expand... Maybe this? [B4X] Round clipping panel Purpose is to create a panel that clips its child views to a circle or rounded rect. 1. Set the round corners with the visual designer. 2. Use this code: Public Sub SetCircleClip (pnl As B4XView) #if B4J Dim circle As JavaObject Dim radius As Double = Max(pnl.Width / 2, pnl.Height / 2)... www.b4x.com Upvote 0
Blueforcer said: According to some answers i need to set android: outlineProvider="bounds" How can i do this in B4A? Click to expand... Maybe this? [B4X] Round clipping panel Purpose is to create a panel that clips its child views to a circle or rounded rect. 1. Set the round corners with the visual designer. 2. Use this code: Public Sub SetCircleClip (pnl As B4XView) #if B4J Dim circle As JavaObject Dim radius As Double = Max(pnl.Width / 2, pnl.Height / 2)... www.b4x.com
Blueforcer Well-Known Member Licensed User Longtime User Apr 5, 2022 #3 DonManfred said: Maybe this? [B4X] Round clipping panel Purpose is to create a panel that clips its child views to a circle or rounded rect. 1. Set the round corners with the visual designer. 2. Use this code: Public Sub SetCircleClip (pnl As B4XView) #if B4J Dim circle As JavaObject Dim radius As Double = Max(pnl.Width / 2, pnl.Height / 2)... www.b4x.com Click to expand... Thanks. unfortunately this changes nothing Upvote 0
DonManfred said: Maybe this? [B4X] Round clipping panel Purpose is to create a panel that clips its child views to a circle or rounded rect. 1. Set the round corners with the visual designer. 2. Use this code: Public Sub SetCircleClip (pnl As B4XView) #if B4J Dim circle As JavaObject Dim radius As Double = Max(pnl.Width / 2, pnl.Height / 2)... www.b4x.com Click to expand... Thanks. unfortunately this changes nothing
DonManfred Expert Licensed User Longtime User Apr 5, 2022 #4 Blueforcer said: unfortunately this changes nothing Click to expand... Did you used it in the outer panel? Upvote 0
Blueforcer said: unfortunately this changes nothing Click to expand... Did you used it in the outer panel?
Blueforcer Well-Known Member Licensed User Longtime User Apr 5, 2022 #5 i tried it with inner and outer panel. Upvote 0
Blueforcer Well-Known Member Licensed User Longtime User Apr 20, 2022 #6 just try to push the post, since i dont solve my problem, yet Upvote 0
DonManfred Expert Licensed User Longtime User Apr 20, 2022 #7 It can be helpful to post a small project showing the problem. Upvote 0
S Spavlyuk Active Member Licensed User Longtime User Apr 20, 2022 #8 Blueforcer said: According to some answers i need to set android: outlineProvider="bounds" How can i do this in B4A? Click to expand... Something like this: B4X: Dim ViewOutlineProvider As JavaObject ViewOutlineProvider.InitializeStatic("android.view.ViewOutlineProvider") Panel.As(JavaObject).RunMethod("setOutlineProvider", Array(ViewOutlineProvider.GetField("BOUNDS"))) Upvote 0
Blueforcer said: According to some answers i need to set android: outlineProvider="bounds" How can i do this in B4A? Click to expand... Something like this: B4X: Dim ViewOutlineProvider As JavaObject ViewOutlineProvider.InitializeStatic("android.view.ViewOutlineProvider") Panel.As(JavaObject).RunMethod("setOutlineProvider", Array(ViewOutlineProvider.GetField("BOUNDS")))
Blueforcer Well-Known Member Licensed User Longtime User Apr 20, 2022 #9 Spavlyuk said: Something like this: B4X: Dim ViewOutlineProvider As JavaObject ViewOutlineProvider.InitializeStatic("android.view.ViewOutlineProvider") Panel.As(JavaObject).RunMethod("setOutlineProvider", Array(ViewOutlineProvider.GetField("BOUNDS"))) Click to expand... unfortunately also does not work i attached a small project to play with Attachments Example.zip Example.zip 9 KB · Views: 416 Upvote 0
Spavlyuk said: Something like this: B4X: Dim ViewOutlineProvider As JavaObject ViewOutlineProvider.InitializeStatic("android.view.ViewOutlineProvider") Panel.As(JavaObject).RunMethod("setOutlineProvider", Array(ViewOutlineProvider.GetField("BOUNDS"))) Click to expand... unfortunately also does not work i attached a small project to play with
Blueforcer Well-Known Member Licensed User Longtime User Apr 23, 2022 #10 Just to make it clear: i need to apply it on the background panel right? Upvote 0
Blueforcer Well-Known Member Licensed User Longtime User Apr 25, 2022 #11 ok, i will throw 10$ to the PP account of the person who solves the problem ? Upvote 0
Alexander Stolte Expert Licensed User Longtime User Apr 25, 2022 #12 have you tried this? [B4X] [XUI] Elevation shadow What's the best (cross-platform) way to add elevation/shadows on XUI views? www.b4x.com Upvote 0
have you tried this? [B4X] [XUI] Elevation shadow What's the best (cross-platform) way to add elevation/shadows on XUI views? www.b4x.com
Blueforcer Well-Known Member Licensed User Longtime User Apr 25, 2022 #13 Alexander Stolte said: have you tried this? [B4X] [XUI] Elevation shadow What's the best (cross-platform) way to add elevation/shadows on XUI views? www.b4x.com Click to expand... I do not know exactly what you mean, I already use the elevation,so this creates the problem in some kind Upvote 0
Alexander Stolte said: have you tried this? [B4X] [XUI] Elevation shadow What's the best (cross-platform) way to add elevation/shadows on XUI views? www.b4x.com Click to expand... I do not know exactly what you mean, I already use the elevation,so this creates the problem in some kind
Blueforcer Well-Known Member Licensed User Longtime User Apr 25, 2022 #15 Alexander Stolte said: View attachment 128463 is this what you want? Click to expand... this is what i have but not what i want. isnt it my example? Upvote 0
Alexander Stolte said: View attachment 128463 is this what you want? Click to expand... this is what i have but not what i want. isnt it my example?
Blueforcer Well-Known Member Licensed User Longtime User Apr 25, 2022 #16 Alexander Stolte said: View attachment 128463 is this what you want? Click to expand... The shadow is cutoff by the transparent background panels shape. i need the shadow on the rootpanel. Last edited: Apr 25, 2022 Upvote 0
Alexander Stolte said: View attachment 128463 is this what you want? Click to expand... The shadow is cutoff by the transparent background panels shape. i need the shadow on the rootpanel.
Alexander Stolte Expert Licensed User Longtime User Apr 25, 2022 #17 Blueforcer said: this is what i have but not what i want. isnt it my example? Click to expand... it is your example with rounded corners? What is the result you want????? Upvote 0
Blueforcer said: this is what i have but not what i want. isnt it my example? Click to expand... it is your example with rounded corners? What is the result you want?????
Blueforcer Well-Known Member Licensed User Longtime User Apr 25, 2022 #18 Alexander Stolte said: it is your example with rounded corners? What is the result you want????? Click to expand... explained it again before your post its the same problem like mentioned in the stackoverflow link i guess Upvote 0
Alexander Stolte said: it is your example with rounded corners? What is the result you want????? Click to expand... explained it again before your post its the same problem like mentioned in the stackoverflow link i guess
Blueforcer Well-Known Member Licensed User Longtime User Jul 7, 2022 #20 Still haven't got it , so a litte push to this thread Upvote 0