Is this sub true?
B4X:
Public Sub DesignerCreateView (Base As Panel, Lbl As Label, Props As Map)
mBase = Base
mBase.Tag="SD_SPINNER"
Left = 0
Top = 0
Dim Obj As View = mBase
Do While Not(GetType(Obj) = "android.widget.FrameLayout")
Try
Left = Left + Obj.Left
Top =Top + Obj.Top
Catch
Log(".")
End Try
Obj = Obj.Parent
Loop
MyAct=Obj
If Props.ContainsKey("BackgroundColor") Then BColor = Props.Get("BackgroundColor")
If Props.ContainsKey("BackgroundColorList") Then BColorList=Props.Get("BackgroundColorList")
If Props.ContainsKey("TextColor") Then TColor = Props.Get("TextColor")
If Props.ContainsKey("TextSize") Then TextSize = Props.Get("TextSize")
If Props.ContainsKey("HintColor") Then HintColor = Props.Get("HintColor")
If Props.ContainsKey("GrayDisplay") Then GrayDisplay = Props.Get("GrayDisplay")
If Props.ContainsKey("RoundCorner") Then RoundCorner = Props.Get("RoundCorner")
Lab.TextColor = TColor
Lab.Color = 0xFFE2E2E2
Lab.Typeface = Typeface.DEFAULT_BOLD
Lab.Gravity = Gravity.CENTER
Lab.Gravity = Gravity.CENTER_VERTICAL
Lab.TextSize = TextSize
Lab.BringToFront
Lab.Text = "Pot. Luminaria"
SetIndex(SelectedIndex)
mBase.Color = 0xFFE2E2E2
mBase.AddView(Lab,13%x,0,mBase.Width,mBase.Height)
mBase.AddView(img,3dip,2dip,12%x,mBase.Height - 4dip)