You can change shadow colors on Views starting API 28 (Pie) with
View#setOutlineAmbientShadowColor(int color)
and
View#setOutlineSpotShadowColor(int color)
if you use elevation.
How can i use it in B4A?
i tried
But its not working:
View#setOutlineAmbientShadowColor(int color)
and
View#setOutlineSpotShadowColor(int color)
if you use elevation.
How can i use it in B4A?
i tried
B4X:
Dim card As B4XView = xui.CreatePanel("card")
card.SetLayoutAnimated(0,0,0,100dip,100dip)
Dim Offset As Float = 5
card.As(JavaObject).RunMethod("setElevation", Array(Offset))
card.As(JavaObject).RunMethod("setOutlineAmbientShadowColor",Array(xui.Color_Red))
But its not working:
java.lang.RuntimeException: Method: setOutlineAmbientShadowColor not found in: anywheresoftware.b4a.BALayout
Last edited: