hello,
The xui defaultfont won't change the fontsize, the defaultfontbold does change the font...
No error !
The xui defaultfont won't change the fontsize, the defaultfontbold does change the font...
No error !
B4X:
Sub CreateListItem(datum As String, title As String, body As String, Width As Int, Height As Int) As Pane
Dim p As Pane
p.Initialize("")
p.SetSize(Width,Height)
p.LoadLayout("notificationlistitem")
Dim xlblTitle As B4XView = lblTitle
xlblTitle.Font = xui.CreateDefaultBoldFont(14) '<---- OK
xlblTitle.Text = title
Dim xlblBody As B4XView = lblBody
xlblBody.Font = xui.CreateDefaultFont(12) '<----- NOT OK
xlblBody.Text = body
Return p
End Sub