i working on xamarin forms project , i've used list view in it. i'm trying add space between 2 cells of list. i've used renderer , accomplished in android. i'm using same approach on ios not getting solution. cells have borders of width 1. not possible embed 1 more blank view @ bottom of cell in ios. how i've provided border of width 2 list cell in custom viewcell renderer.
uitableviewcell cell = base.getcell (item, reusablecell, tv); cell.contentview.layer.borderwidth = 1f; cell.contentview.layer.bordercolor = color.fromhex ("bfe0e0e0").tocgcolor (); cell.contentview.layer.cornerradius = 5f;
please suggest me way through can accomplish spacing between 2 cells of list.
i working collections , not tables. in following layout-example can set vertical , horizontal spacing:
var layout = new uicollectionviewflowlayout { headerreferencesize = new cgsize(0, 0), footerreferencesize = new cgsize(0, 0), sectioninset = new uiedgeinsets(0, 0, 0, 0), itemsize = new cgsize(cellwidth, cellheight), scrolldirection = uicollectionviewscrolldirection.vertical, minimuminteritemspacing = verticalspacing, minimumlinespacing = horizontalspacing }; var mycollection = new uicollectionview(cgrect.empty, layout);; then need set source of uicollectionview list of items. in source can define layout/design of single item in colleciton (just uitableviewcell).
Comments
Post a Comment