Android Question Panel border radius and elevetation not work

Hi.

B4X:
Dim mbase As Panel

...

Dim cd As ColorDrawable
cd.Initialize2( Colors.White, 10dip, 0, 0 )
mBase.Background = cd

mBase.Elevation = 10dip
What happens when I try to put border radius and elevation on a panel don't work. I can only use one of the two, they don't work together.
 
Hi.

I found the solution.

Code:
Dim mBase as Panel

...

Dim cd As GradientDrawable
cd.Initialize("TOP_BOTTOM", Array As Int(Colors.White, Colors.White))
cd.CornerRadius  = mBorderRadius
mBase.Background = cd
mBase.Elevation  = 8dip
 
Top