Private Sub hs_Respose(Record As List)
CustomListView_record.Clear
For i=0 To Record.Size-1
Dim m As Map
m = Record.Get(i)
If m.Get("badword") = "true" Then
Continue
End If
Dim clr As Paint = fx.Colors.Transparent 'fx.Colors.ARGB(20,Rnd(100,200),Rnd(100,200),Rnd(100,200))
Dim p As Pane
p.Initialize("")
p.PrefWidth = CustomListView_record.AsView.Width
p.PrefHeight = 50
Dim str As String = m.Get("ms_gpt_01_04").As(String).Replace(CRLF, "").ToUpperCase.Trim
Dim lb As Label
lb.Initialize("")
lb.Text = str
lb.Tag=m
p.AddNode(lb,0,0,p.PrefWidth,50)
lb.PrefHeight = 50
lb.Alignment = "CENTER"
lb.TextColor = fx.Colors.White
lb.WrapText = True
CSSUtils.SetBackgroundColor(lb,clr)
CustomListView_record.Add(p,p)
CustomListView_record.Refresh
Dim p As Pane
p.Initialize("")
p.PrefWidth = CustomListView_record.AsView.Width
p.PrefHeight = 50
Dim str As String = m.Get("ms_gpt_01_05").As(String).Replace(CRLF, "").ToLowerCase.Trim
Dim lb As Label
lb.Initialize("")
lb.Text = str & CRLF & CRLF
lb.Tag=m
lb.PrefHeight = 50
p.AddNode(lb,10,0,p.PrefWidth-20,p.PrefHeight)
lb.Alignment = "CENTER"
lb.TextColor = fx.Colors.ARGB(255,79,197,79)
lb.TextSize = 16
lb.WrapText = True
CSSUtils.SetBackgroundColor(lb,clr)
lb.As(JavaObject).RunMethod("setTextAlignment", Array("CENTER"))
CustomListView_record.Add(p,p)
CustomListView_record.Refresh
Next
End Sub