D
Deleted member 103
Guest
Hi,
I do not know if there is an error, fact is the function Panel.Elevation does not always work.
Works with GradientDrawable, but not with ColorDrawable.
Here is my code, once with GradientDrawable and once with ColorDrawable.
I do not know if there is an error, fact is the function Panel.Elevation does not always work.
Works with GradientDrawable, but not with ColorDrawable.
Here is my code, once with GradientDrawable and once with ColorDrawable.
B4X:
Dim dr As ColorDrawable
dr.Initialize(Colors.Red, pnlMicrophon.Width / 2)
pnlMicrophon.Background = dr
pnlMicrophon.Elevation = 5dip '.SetElevationAnimated(1, 5dip)
B4X:
Dim dr As GradientDrawable
dr.Initialize("TR_BL", Array As Int(Colors.Red, Colors.Red))
dr.CornerRadius = pnlMicrophon.Width / 2
pnlMicrophon.Background = dr
pnlMicrophon.Elevation = 5dip