Android Question CustomListView: problem with intervals

Genricke

Member
Hi !
I can't remove or fill in the line spacing in CustomListView. :(
Example cod (attached to the post):

Example:
    Root.LoadLayout("MainPage")    'Only CustomListView
    'Root.Color = xui.Color_Blue    'Not work
    
    CustomListView1.AsView.Color = xui.Color_Blue
    CustomListView1.DefaultTextBackgroundColor = xui.Color_Cyan
    
    For Col = 0 To 2       
        CustomListView1.AddTextItem("TextItem " & Col, Col)       
    Next

    For Col = 3 To 5
        Private FieldPanel As B4XView = xui.CreatePanel("")
        FieldPanel.Width  = CustomListView1.sv.ScrollViewContentWidth
        FieldPanel.Height = 80dip       
        FieldPanel.Color  = xui.Color_Green
        CustomListView1.Add (FieldPanel, Col)
    Next

Getting the result:

test.png

Thank you for your help - I have no more ideas how to fix it !
 

Attachments

  • Test.zip
    10.2 KB · Views: 99
Top