iOS Question [B4X] Double column multiple card element sizes like Pinterest

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi everyone, what is the best way to achieve this type of list nowadays?
I know I could do it by using two CLVs that scrolls together but I'm afraid of glitches (like jerky movements between the two on shitty-smartphone like mine)

Schermata 2023-08-14 alle 11.18.41.png


The features I'm interested in are:
  1. Two columns
  2. each column can handle different sizes
  3. if an element is removed there is no blank space

I already managed to have a double column CLV working properly, but the elements must be all the same size.. because the row height is the same for both "column".
Actually a published a code snippet about this while ago, that seems to be vanished :(.
 

Alexander Stolte

Expert
Licensed User
Longtime User
Maybe this fits your requirements:

Remove items does not work yet, but should work in an update later.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
How can a human do so complex one in few minutes !
It has not been complex, rather a lot of writing work and searching. Many of the things I have already implemented in other custom views, so I only have to copy paste.
2 Hours of work
 
Upvote 0
Top