I create panel custom view, but none object added in it.
my panel custom view code :
my panel custom view code :
B4X:
Public Sub DesignerCreateView (Base As Panel, Lbl As Label, Props As Map)
mBase.Initialize("mBase")
mBase = Base
Base.AddView(mBase,0,0,Base.Width,Base.Height)
Log(Props.Get("Elevation"))
Base.Elevation = Props.Get("Elevation")
If Props.Get("NoDefaultBackground")="N" Then
Dim gd As GradientDrawable
Dim Clrs(2) As Int
Clrs(0) = Colors.Magenta
Clrs(1) = Colors.White
gd.Initialize("TL_BR", Clrs)
mBase.Background = gd
End If
End Sub