B4J Question ListView with moving elements?

Midimaster

Active Member
Licensed User
I need a view like a list, where I can add and remove a various number of elements at runtime. The elements should be able to swap their positions slowly.

Therefore I used a ScrollView on B4A, added 3-20 labels and 1 green (edit-)panel at runtime and moved them very awesome up and down.
1601905971290.png


But in B4J it looks like I cannot add panes or label to a ScrollView neither in the designer nor at rumtime... So what is it good for?

When I use a ListView I can add elements very easy. But now there is no way to move the positions smoothely any more.

What would be a similar solution for B4J?
 

klaus

Expert
Licensed User
Longtime User
But in B4J it looks like I cannot add panes or label to a ScrollView neither in the designer nor at rumtime.
You can!
In B4J the ScrollView is called ScrollPane, and the InnerPanel is called InnerNode.
The B4J ScrollPane is bi-directional.
Or you could declare the ScrollView and the ScrollPane as B4XViews then you can use same code for both platforms.
Anyway, it is worth looking at xCustomListView.
 
Upvote 0

Midimaster

Active Member
Licensed User
I cannot see, how I could swap objects with animated movings on a xcustomListView.

Do you know a tutorial forr this?
 
Upvote 0
Top