ListView TwoLinesLayout Text Format

jpvniekerk

Active Member
Licensed User
Longtime User
I am working on a listview and need to put 4 items on each "cell". I'm using TwoLines Layout, so I put 2 items on the first line and 2 items on the second line.
This all works fine, but I think it will look better if I can "rightalign" the second item on both lines.
The width of the listview is 100%x
The TextSize of the first line is 14
The TextSize of the second line 12

I'm trying to make up a line with Item2, + some spaces + Item2 (for the top)
The same for the bottom.

How can I calculate how many characters can I put on the first line and the second line. Then I can calculate how many spaces to add between the two items.

Hope this all makes sense

:sign0085:
 

jpvniekerk

Active Member
Licensed User
Longtime User
Thanks Erel, but pardon my ignorance - I have never used this before.

Is there anywhere I can find examples of how to use this, or an explanation of using CustomListView class?
 
Upvote 0

jpvniekerk

Active Member
Licensed User
Longtime User
Thanks Erel

I'm not sure that CustomListview will work for my application. It will definitely make the layout work the way I want, but 2 issues with it:

1) The list may (probably will) contain more than 2,000 rows (even up to 10,000). It sounds like CustomListview is only good up to about 2000 rows.
2) I must have fastscroll available (to quickly scroll through 10,000 items!)

So it is back to figuring out how to format the strings for the two lines, and make it appear good on any screen resolution.
 
Upvote 0
Top