Sub createInmueble(m As Map) As Panel
Dim p As Panel
p.Initialize("inmueble")
p.Color=Colors.White
'Dim im As ImageView
'im.Initialize("")
'p.AddView(im, 5dip, 5dip, 50dip, 50dip)
'If File.Exists(File.DirAssets, "inmueble." & m.Get("typeInmueble") & ".png") Then
' im.Bitmap=LoadBitmap(File.DirAssets, "inmueble." & m.Get("typeInmueble") & ".png")
'Else
' im.Bitmap=LoadBitmap(File.DirAssets, "inmueble.estacionamiento.png")
'End If
'im.Gravity=Gravity.FILL
Dim l As Label
l.Initialize("")
p.AddView(l, 60dip, 5dip, pnlInmueble.Width-70dip, 25dip)
l.Text=m.Get("typeInmueble") & ":"
l.Typeface=x.fontBold
Dim l2 As Label
l2.Initialize("")
p.AddView(l2, 60dip, 20dip, pnlInmueble.Width-70dip, 25dip)
l2.Text=m.Get("typeInmuebleGlobal") & " " & m.Get("inmueble")
l.Typeface=x.fontNormal
l.TextSize=sm.GetSetting("subTitleSize")
l.Typeface=x.fontBold
l2.TextSize=sm.GetSetting("titleSize")
Dim line As Label
line.Initialize("")
p.AddView(line, 0, 0, pnlInmueble.Width, 1dip)
line.Color=Colors.RGB(235,235,235)
m.Put("rutComunidad", txtRUT.Text)
p.Tag=m
Return p
End Sub