When I create a "b4xview panel" with rounded corners, it is ok if added directly to an Activity; if I pass (add) it to a xCustomListView, the corners are wrong:
Sub Process_Globals
Private xui As XUI
End Sub
Sub Globals
Private CustomListView1 As CustomListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("layMain")
For i = 1 To 20
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, CustomListView1.AsView.Width, 60dip)
p.LoadLayout("Item")
CustomListView1.Add(p, "")
Next
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("layMain")
For i = 1 To 20
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, CustomListView1.AsView.Width, 60dip)
Dim pp As B4XView = xui.CreatePanel("")
pp.SetColorAndBorder(xui.Color_Blue, 2dip, xui.Color_White, 5dip)
p.AddView(pp, 0, 0, p.Width, p.Height)
CustomListView1.Add(p, "")
Next
End Sub
Make sure to set the divider color to transparent.