Private Sub CreateCard(Width As Int, Title As String, Image As String, Content As String) As Panel
Dim p As B4XView = xui.CreatePanel("")
Dim height As Int = 280dip
If GetDeviceLayoutValues.ApproximateScreenSize < 4.5 Then
height = 310dip
End If
'height = 200dip
p.SetLayoutAnimated(0, 0, 0, Width, height)
p.LoadLayout("Card")
Panel1.SetColorAndBorder(0x7EF0FFFF, 1dip, 0x7EF0FFFF, 8dip)
SetShadow(Panel1, 8dip, 0x7EF0FFFF)