iOS Question How to set the height of rows in customListView

MitchBu

Well-Known Member
Licensed User
Longtime User
I am trying to change rows height in a customListView.

Here is my code. ResizeItem autocompletes:

B4X:
    For i = 1 To ClvFontList.GetSize
        ClvFontList.ResizeItem(i, 400)
    Next

It does nothing, and I get an error:

Method not found: _resizeitem::, target: [_dividerheight=2, _defaulttextcolor=-16777216, _defaulttextbackgroundcolor=-1
, _highlightcolor=-3355444, _eventname=clvfontlist, _callback=<b4i_main: (null)>
, _mbase=<B4IWeakRef: 0x28215d9b0>, _sv=<B4IScrollView: <UIScrollView: 0x102042e00; frame = (0 0; 1024 768); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x282d44480>; layer = <CALayer: 0x282370c60>; contentOffset: {0, 0}; contentSize: {1024, 4086};
adjustedContentInset: {0, 0, 0, 0}>>, _items=<B4IList: (

Will appreciate any help.

TIA
 

MitchBu

Well-Known Member
Licensed User
Longtime User
Not sure if that is the problem but it should be:
B4X:
For i = 0 To ClvFontList.GetSize - 1

OK. I changed the code that way. Yet I still get
Method not found: _resizeitem::, target: [_dividerheight=2, _defaulttextcolor=-16777216, _defaulttextbackgroundcolor=-1[/COLOR]

Looks like the compiler does not recognize .resizeitem.
 
Upvote 0

MitchBu

Well-Known Member
Licensed User
Longtime User
Make sure to use xCustomListView library and not a code module or the old iCustomListView. If still not working then please upload the project or better, reproduce it in a small project.

I tried xCustomListView, but there is no way to set the font, and I need to display all the fonts in the pckage.

I had used iCustomListView from the built in library.
 
Upvote 0
Top