ANTONIO ALBEIRO VALENCIA Member Mar 25, 2020 #1 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. 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.
ANTONIO ALBEIRO VALENCIA Member Apr 1, 2020 #2 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 Upvote 1
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