Android Question Set outlineProvider

Blueforcer

Well-Known Member
Licensed User
Longtime User
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:


1649157989009.png


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
    9 KB · Views: 84
Last edited:

DonManfred

Expert
Licensed User
Longtime User
According to some answers i need to set android: outlineProvider="bounds"
How can i do this in B4A?
Maybe this?
 
Upvote 0

Blueforcer

Well-Known Member
Licensed User
Longtime User
Maybe this?
Thanks. unfortunately this changes nothing
 
Upvote 0

Spavlyuk

Active Member
Licensed User
According to some answers i need to set android: outlineProvider="bounds"
How can i do this in B4A?

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

Well-Known Member
Licensed User
Longtime User
Something like this:
B4X:
Dim ViewOutlineProvider As JavaObject
ViewOutlineProvider.InitializeStatic("android.view.ViewOutlineProvider")
Panel.As(JavaObject).RunMethod("setOutlineProvider", Array(ViewOutlineProvider.GetField("BOUNDS")))
unfortunately also does not work

i attached a small project to play with
 

Attachments

  • Example.zip
    9 KB · Views: 88
Upvote 0
Top